~ubuntu-branches/ubuntu/wily/gs-collections/wily

« back to all changes in this revision

Viewing changes to collections/src/main/java/com/gs/collections/impl/tuple/primitive/PrimitiveTuples.java

  • Committer: Package Import Robot
  • Author(s): Emmanuel Bourg
  • Date: 2015-07-23 12:42:30 UTC
  • Revision ID: package-import@ubuntu.com-20150723124230-2rjvfv6elyn2m7d4
Tags: upstream-5.1.0
ImportĀ upstreamĀ versionĀ 5.1.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright 2013 Goldman Sachs.
 
3
 *
 
4
 * Licensed under the Apache License, Version 2.0 (the "License");
 
5
 * you may not use this file except in compliance with the License.
 
6
 * You may obtain a copy of the License at
 
7
 *
 
8
 *     http://www.apache.org/licenses/LICENSE-2.0
 
9
 *
 
10
 * Unless required by applicable law or agreed to in writing, software
 
11
 * distributed under the License is distributed on an "AS IS" BASIS,
 
12
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 
13
 * See the License for the specific language governing permissions and
 
14
 * limitations under the License.
 
15
 */
 
16
 
 
17
package com.gs.collections.impl.tuple.primitive;
 
18
 
 
19
import com.gs.collections.api.tuple.primitive.BooleanBooleanPair;
 
20
import com.gs.collections.api.tuple.primitive.BooleanBytePair;
 
21
import com.gs.collections.api.tuple.primitive.BooleanCharPair;
 
22
import com.gs.collections.api.tuple.primitive.BooleanDoublePair;
 
23
import com.gs.collections.api.tuple.primitive.BooleanFloatPair;
 
24
import com.gs.collections.api.tuple.primitive.BooleanIntPair;
 
25
import com.gs.collections.api.tuple.primitive.BooleanLongPair;
 
26
import com.gs.collections.api.tuple.primitive.BooleanObjectPair;
 
27
import com.gs.collections.api.tuple.primitive.BooleanShortPair;
 
28
import com.gs.collections.api.tuple.primitive.ByteBooleanPair;
 
29
import com.gs.collections.api.tuple.primitive.ByteBytePair;
 
30
import com.gs.collections.api.tuple.primitive.ByteCharPair;
 
31
import com.gs.collections.api.tuple.primitive.ByteDoublePair;
 
32
import com.gs.collections.api.tuple.primitive.ByteFloatPair;
 
33
import com.gs.collections.api.tuple.primitive.ByteIntPair;
 
34
import com.gs.collections.api.tuple.primitive.ByteLongPair;
 
35
import com.gs.collections.api.tuple.primitive.ByteObjectPair;
 
36
import com.gs.collections.api.tuple.primitive.ByteShortPair;
 
37
import com.gs.collections.api.tuple.primitive.CharBooleanPair;
 
38
import com.gs.collections.api.tuple.primitive.CharBytePair;
 
39
import com.gs.collections.api.tuple.primitive.CharCharPair;
 
40
import com.gs.collections.api.tuple.primitive.CharDoublePair;
 
41
import com.gs.collections.api.tuple.primitive.CharFloatPair;
 
42
import com.gs.collections.api.tuple.primitive.CharIntPair;
 
43
import com.gs.collections.api.tuple.primitive.CharLongPair;
 
44
import com.gs.collections.api.tuple.primitive.CharObjectPair;
 
45
import com.gs.collections.api.tuple.primitive.CharShortPair;
 
46
import com.gs.collections.api.tuple.primitive.DoubleBooleanPair;
 
47
import com.gs.collections.api.tuple.primitive.DoubleBytePair;
 
48
import com.gs.collections.api.tuple.primitive.DoubleCharPair;
 
49
import com.gs.collections.api.tuple.primitive.DoubleDoublePair;
 
50
import com.gs.collections.api.tuple.primitive.DoubleFloatPair;
 
51
import com.gs.collections.api.tuple.primitive.DoubleIntPair;
 
52
import com.gs.collections.api.tuple.primitive.DoubleLongPair;
 
53
import com.gs.collections.api.tuple.primitive.DoubleObjectPair;
 
54
import com.gs.collections.api.tuple.primitive.DoubleShortPair;
 
55
import com.gs.collections.api.tuple.primitive.FloatBooleanPair;
 
56
import com.gs.collections.api.tuple.primitive.FloatBytePair;
 
57
import com.gs.collections.api.tuple.primitive.FloatCharPair;
 
58
import com.gs.collections.api.tuple.primitive.FloatDoublePair;
 
59
import com.gs.collections.api.tuple.primitive.FloatFloatPair;
 
60
import com.gs.collections.api.tuple.primitive.FloatIntPair;
 
61
import com.gs.collections.api.tuple.primitive.FloatLongPair;
 
62
import com.gs.collections.api.tuple.primitive.FloatObjectPair;
 
63
import com.gs.collections.api.tuple.primitive.FloatShortPair;
 
64
import com.gs.collections.api.tuple.primitive.IntBooleanPair;
 
65
import com.gs.collections.api.tuple.primitive.IntBytePair;
 
66
import com.gs.collections.api.tuple.primitive.IntCharPair;
 
67
import com.gs.collections.api.tuple.primitive.IntDoublePair;
 
68
import com.gs.collections.api.tuple.primitive.IntFloatPair;
 
69
import com.gs.collections.api.tuple.primitive.IntIntPair;
 
70
import com.gs.collections.api.tuple.primitive.IntLongPair;
 
71
import com.gs.collections.api.tuple.primitive.IntObjectPair;
 
72
import com.gs.collections.api.tuple.primitive.IntShortPair;
 
73
import com.gs.collections.api.tuple.primitive.LongBooleanPair;
 
74
import com.gs.collections.api.tuple.primitive.LongBytePair;
 
75
import com.gs.collections.api.tuple.primitive.LongCharPair;
 
76
import com.gs.collections.api.tuple.primitive.LongDoublePair;
 
77
import com.gs.collections.api.tuple.primitive.LongFloatPair;
 
78
import com.gs.collections.api.tuple.primitive.LongIntPair;
 
79
import com.gs.collections.api.tuple.primitive.LongLongPair;
 
80
import com.gs.collections.api.tuple.primitive.LongObjectPair;
 
81
import com.gs.collections.api.tuple.primitive.LongShortPair;
 
82
import com.gs.collections.api.tuple.primitive.ObjectBooleanPair;
 
83
import com.gs.collections.api.tuple.primitive.ObjectBytePair;
 
84
import com.gs.collections.api.tuple.primitive.ObjectCharPair;
 
85
import com.gs.collections.api.tuple.primitive.ObjectDoublePair;
 
86
import com.gs.collections.api.tuple.primitive.ObjectFloatPair;
 
87
import com.gs.collections.api.tuple.primitive.ObjectIntPair;
 
88
import com.gs.collections.api.tuple.primitive.ObjectLongPair;
 
89
import com.gs.collections.api.tuple.primitive.ObjectShortPair;
 
90
import com.gs.collections.api.tuple.primitive.ShortBooleanPair;
 
91
import com.gs.collections.api.tuple.primitive.ShortBytePair;
 
92
import com.gs.collections.api.tuple.primitive.ShortCharPair;
 
93
import com.gs.collections.api.tuple.primitive.ShortDoublePair;
 
94
import com.gs.collections.api.tuple.primitive.ShortFloatPair;
 
95
import com.gs.collections.api.tuple.primitive.ShortIntPair;
 
96
import com.gs.collections.api.tuple.primitive.ShortLongPair;
 
97
import com.gs.collections.api.tuple.primitive.ShortObjectPair;
 
98
import com.gs.collections.api.tuple.primitive.ShortShortPair;
 
99
 
 
100
public final class PrimitiveTuples
 
101
{
 
102
    private PrimitiveTuples()
 
103
    {
 
104
        throw new AssertionError("Suppress default constructor for noninstantiability");
 
105
    }
 
106
 
 
107
    public static <T> ObjectBooleanPair<T> pair(T one, boolean two)
 
108
    {
 
109
        return new ObjectBooleanPairImpl<T>(one, two);
 
110
    }
 
111
 
 
112
    public static <T> ObjectBytePair<T> pair(T one, byte two)
 
113
    {
 
114
        return new ObjectBytePairImpl<T>(one, two);
 
115
    }
 
116
 
 
117
    public static <T> ObjectCharPair<T> pair(T one, char two)
 
118
    {
 
119
        return new ObjectCharPairImpl<T>(one, two);
 
120
    }
 
121
 
 
122
    public static <T> ObjectShortPair<T> pair(T one, short two)
 
123
    {
 
124
        return new ObjectShortPairImpl<T>(one, two);
 
125
    }
 
126
 
 
127
    public static <T> ObjectIntPair<T> pair(T one, int two)
 
128
    {
 
129
        return new ObjectIntPairImpl<T>(one, two);
 
130
    }
 
131
 
 
132
    public static <T> ObjectFloatPair<T> pair(T one, float two)
 
133
    {
 
134
        return new ObjectFloatPairImpl<T>(one, two);
 
135
    }
 
136
 
 
137
    public static <T> ObjectLongPair<T> pair(T one, long two)
 
138
    {
 
139
        return new ObjectLongPairImpl<T>(one, two);
 
140
    }
 
141
 
 
142
    public static <T> ObjectDoublePair<T> pair(T one, double two)
 
143
    {
 
144
        return new ObjectDoublePairImpl<T>(one, two);
 
145
    }
 
146
 
 
147
    public static <T> BooleanObjectPair<T> pair(boolean one, T two)
 
148
    {
 
149
        return new BooleanObjectPairImpl<T>(one, two);
 
150
    }
 
151
 
 
152
    public static <T> ByteObjectPair<T> pair(byte one, T two)
 
153
    {
 
154
        return new ByteObjectPairImpl<T>(one, two);
 
155
    }
 
156
 
 
157
    public static <T> CharObjectPair<T> pair(char one, T two)
 
158
    {
 
159
        return new CharObjectPairImpl<T>(one, two);
 
160
    }
 
161
 
 
162
    public static <T> ShortObjectPair<T> pair(short one, T two)
 
163
    {
 
164
        return new ShortObjectPairImpl<T>(one, two);
 
165
    }
 
166
 
 
167
    public static <T> IntObjectPair<T> pair(int one, T two)
 
168
    {
 
169
        return new IntObjectPairImpl<T>(one, two);
 
170
    }
 
171
 
 
172
    public static <T> FloatObjectPair<T> pair(float one, T two)
 
173
    {
 
174
        return new FloatObjectPairImpl<T>(one, two);
 
175
    }
 
176
 
 
177
    public static <T> LongObjectPair<T> pair(long one, T two)
 
178
    {
 
179
        return new LongObjectPairImpl<T>(one, two);
 
180
    }
 
181
 
 
182
    public static <T> DoubleObjectPair<T> pair(double one, T two)
 
183
    {
 
184
        return new DoubleObjectPairImpl<T>(one, two);
 
185
    }
 
186
 
 
187
    public static IntIntPair pair(int one, int two)
 
188
    {
 
189
        return new IntIntPairImpl(one, two);
 
190
    }
 
191
 
 
192
    public static IntFloatPair pair(int one, float two)
 
193
    {
 
194
        return new IntFloatPairImpl(one, two);
 
195
    }
 
196
 
 
197
    public static IntDoublePair pair(int one, double two)
 
198
    {
 
199
        return new IntDoublePairImpl(one, two);
 
200
    }
 
201
 
 
202
    public static IntLongPair pair(int one, long two)
 
203
    {
 
204
        return new IntLongPairImpl(one, two);
 
205
    }
 
206
 
 
207
    public static IntShortPair pair(int one, short two)
 
208
    {
 
209
        return new IntShortPairImpl(one, two);
 
210
    }
 
211
 
 
212
    public static IntBytePair pair(int one, byte two)
 
213
    {
 
214
        return new IntBytePairImpl(one, two);
 
215
    }
 
216
 
 
217
    public static IntCharPair pair(int one, char two)
 
218
    {
 
219
        return new IntCharPairImpl(one, two);
 
220
    }
 
221
 
 
222
    public static IntBooleanPair pair(int one, boolean two)
 
223
    {
 
224
        return new IntBooleanPairImpl(one, two);
 
225
    }
 
226
 
 
227
    public static FloatIntPair pair(float one, int two)
 
228
    {
 
229
        return new FloatIntPairImpl(one, two);
 
230
    }
 
231
 
 
232
    public static FloatFloatPair pair(float one, float two)
 
233
    {
 
234
        return new FloatFloatPairImpl(one, two);
 
235
    }
 
236
 
 
237
    public static FloatDoublePair pair(float one, double two)
 
238
    {
 
239
        return new FloatDoublePairImpl(one, two);
 
240
    }
 
241
 
 
242
    public static FloatLongPair pair(float one, long two)
 
243
    {
 
244
        return new FloatLongPairImpl(one, two);
 
245
    }
 
246
 
 
247
    public static FloatShortPair pair(float one, short two)
 
248
    {
 
249
        return new FloatShortPairImpl(one, two);
 
250
    }
 
251
 
 
252
    public static FloatBytePair pair(float one, byte two)
 
253
    {
 
254
        return new FloatBytePairImpl(one, two);
 
255
    }
 
256
 
 
257
    public static FloatCharPair pair(float one, char two)
 
258
    {
 
259
        return new FloatCharPairImpl(one, two);
 
260
    }
 
261
 
 
262
    public static FloatBooleanPair pair(float one, boolean two)
 
263
    {
 
264
        return new FloatBooleanPairImpl(one, two);
 
265
    }
 
266
 
 
267
    public static DoubleIntPair pair(double one, int two)
 
268
    {
 
269
        return new DoubleIntPairImpl(one, two);
 
270
    }
 
271
 
 
272
    public static DoubleFloatPair pair(double one, float two)
 
273
    {
 
274
        return new DoubleFloatPairImpl(one, two);
 
275
    }
 
276
 
 
277
    public static DoubleDoublePair pair(double one, double two)
 
278
    {
 
279
        return new DoubleDoublePairImpl(one, two);
 
280
    }
 
281
 
 
282
    public static DoubleLongPair pair(double one, long two)
 
283
    {
 
284
        return new DoubleLongPairImpl(one, two);
 
285
    }
 
286
 
 
287
    public static DoubleShortPair pair(double one, short two)
 
288
    {
 
289
        return new DoubleShortPairImpl(one, two);
 
290
    }
 
291
 
 
292
    public static DoubleBytePair pair(double one, byte two)
 
293
    {
 
294
        return new DoubleBytePairImpl(one, two);
 
295
    }
 
296
 
 
297
    public static DoubleCharPair pair(double one, char two)
 
298
    {
 
299
        return new DoubleCharPairImpl(one, two);
 
300
    }
 
301
 
 
302
    public static DoubleBooleanPair pair(double one, boolean two)
 
303
    {
 
304
        return new DoubleBooleanPairImpl(one, two);
 
305
    }
 
306
 
 
307
    public static LongIntPair pair(long one, int two)
 
308
    {
 
309
        return new LongIntPairImpl(one, two);
 
310
    }
 
311
 
 
312
    public static LongFloatPair pair(long one, float two)
 
313
    {
 
314
        return new LongFloatPairImpl(one, two);
 
315
    }
 
316
 
 
317
    public static LongDoublePair pair(long one, double two)
 
318
    {
 
319
        return new LongDoublePairImpl(one, two);
 
320
    }
 
321
 
 
322
    public static LongLongPair pair(long one, long two)
 
323
    {
 
324
        return new LongLongPairImpl(one, two);
 
325
    }
 
326
 
 
327
    public static LongShortPair pair(long one, short two)
 
328
    {
 
329
        return new LongShortPairImpl(one, two);
 
330
    }
 
331
 
 
332
    public static LongBytePair pair(long one, byte two)
 
333
    {
 
334
        return new LongBytePairImpl(one, two);
 
335
    }
 
336
 
 
337
    public static LongCharPair pair(long one, char two)
 
338
    {
 
339
        return new LongCharPairImpl(one, two);
 
340
    }
 
341
 
 
342
    public static LongBooleanPair pair(long one, boolean two)
 
343
    {
 
344
        return new LongBooleanPairImpl(one, two);
 
345
    }
 
346
 
 
347
    public static ShortIntPair pair(short one, int two)
 
348
    {
 
349
        return new ShortIntPairImpl(one, two);
 
350
    }
 
351
 
 
352
    public static ShortFloatPair pair(short one, float two)
 
353
    {
 
354
        return new ShortFloatPairImpl(one, two);
 
355
    }
 
356
 
 
357
    public static ShortDoublePair pair(short one, double two)
 
358
    {
 
359
        return new ShortDoublePairImpl(one, two);
 
360
    }
 
361
 
 
362
    public static ShortLongPair pair(short one, long two)
 
363
    {
 
364
        return new ShortLongPairImpl(one, two);
 
365
    }
 
366
 
 
367
    public static ShortShortPair pair(short one, short two)
 
368
    {
 
369
        return new ShortShortPairImpl(one, two);
 
370
    }
 
371
 
 
372
    public static ShortBytePair pair(short one, byte two)
 
373
    {
 
374
        return new ShortBytePairImpl(one, two);
 
375
    }
 
376
 
 
377
    public static ShortCharPair pair(short one, char two)
 
378
    {
 
379
        return new ShortCharPairImpl(one, two);
 
380
    }
 
381
 
 
382
    public static ShortBooleanPair pair(short one, boolean two)
 
383
    {
 
384
        return new ShortBooleanPairImpl(one, two);
 
385
    }
 
386
 
 
387
    public static ByteIntPair pair(byte one, int two)
 
388
    {
 
389
        return new ByteIntPairImpl(one, two);
 
390
    }
 
391
 
 
392
    public static ByteFloatPair pair(byte one, float two)
 
393
    {
 
394
        return new ByteFloatPairImpl(one, two);
 
395
    }
 
396
 
 
397
    public static ByteDoublePair pair(byte one, double two)
 
398
    {
 
399
        return new ByteDoublePairImpl(one, two);
 
400
    }
 
401
 
 
402
    public static ByteLongPair pair(byte one, long two)
 
403
    {
 
404
        return new ByteLongPairImpl(one, two);
 
405
    }
 
406
 
 
407
    public static ByteShortPair pair(byte one, short two)
 
408
    {
 
409
        return new ByteShortPairImpl(one, two);
 
410
    }
 
411
 
 
412
    public static ByteBytePair pair(byte one, byte two)
 
413
    {
 
414
        return new ByteBytePairImpl(one, two);
 
415
    }
 
416
 
 
417
    public static ByteCharPair pair(byte one, char two)
 
418
    {
 
419
        return new ByteCharPairImpl(one, two);
 
420
    }
 
421
 
 
422
    public static ByteBooleanPair pair(byte one, boolean two)
 
423
    {
 
424
        return new ByteBooleanPairImpl(one, two);
 
425
    }
 
426
 
 
427
    public static CharIntPair pair(char one, int two)
 
428
    {
 
429
        return new CharIntPairImpl(one, two);
 
430
    }
 
431
 
 
432
    public static CharFloatPair pair(char one, float two)
 
433
    {
 
434
        return new CharFloatPairImpl(one, two);
 
435
    }
 
436
 
 
437
    public static CharDoublePair pair(char one, double two)
 
438
    {
 
439
        return new CharDoublePairImpl(one, two);
 
440
    }
 
441
 
 
442
    public static CharLongPair pair(char one, long two)
 
443
    {
 
444
        return new CharLongPairImpl(one, two);
 
445
    }
 
446
 
 
447
    public static CharShortPair pair(char one, short two)
 
448
    {
 
449
        return new CharShortPairImpl(one, two);
 
450
    }
 
451
 
 
452
    public static CharBytePair pair(char one, byte two)
 
453
    {
 
454
        return new CharBytePairImpl(one, two);
 
455
    }
 
456
 
 
457
    public static CharCharPair pair(char one, char two)
 
458
    {
 
459
        return new CharCharPairImpl(one, two);
 
460
    }
 
461
 
 
462
    public static CharBooleanPair pair(char one, boolean two)
 
463
    {
 
464
        return new CharBooleanPairImpl(one, two);
 
465
    }
 
466
 
 
467
    public static BooleanIntPair pair(boolean one, int two)
 
468
    {
 
469
        return new BooleanIntPairImpl(one, two);
 
470
    }
 
471
 
 
472
    public static BooleanFloatPair pair(boolean one, float two)
 
473
    {
 
474
        return new BooleanFloatPairImpl(one, two);
 
475
    }
 
476
 
 
477
    public static BooleanDoublePair pair(boolean one, double two)
 
478
    {
 
479
        return new BooleanDoublePairImpl(one, two);
 
480
    }
 
481
 
 
482
    public static BooleanLongPair pair(boolean one, long two)
 
483
    {
 
484
        return new BooleanLongPairImpl(one, two);
 
485
    }
 
486
 
 
487
    public static BooleanShortPair pair(boolean one, short two)
 
488
    {
 
489
        return new BooleanShortPairImpl(one, two);
 
490
    }
 
491
 
 
492
    public static BooleanBytePair pair(boolean one, byte two)
 
493
    {
 
494
        return new BooleanBytePairImpl(one, two);
 
495
    }
 
496
 
 
497
    public static BooleanCharPair pair(boolean one, char two)
 
498
    {
 
499
        return new BooleanCharPairImpl(one, two);
 
500
    }
 
501
 
 
502
    public static BooleanBooleanPair pair(boolean one, boolean two)
 
503
    {
 
504
        return new BooleanBooleanPairImpl(one, two);
 
505
    }
 
506
}