@Deprecated public final class Tuples extends Object
Pair
and tuple instances.
These data holders can be used to hold temporary results during parsing so you don't have to create your own data types.
Constructor and Description |
---|
Tuples()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static <A,B> Pair<A,B> |
pair(A a,
B b)
Deprecated.
Returns a
Pair of 2 objects. |
static <A,B> Pair<A,B> |
tuple(A a,
B b)
Deprecated.
Returns a
Pair of 2 objects. |
static <A,B,C> Tuple3<A,B,C> |
tuple(A a,
B b,
C c)
Deprecated.
Returns a
Tuple3 of 3 objects. |
static <A,B,C,D> Tuple4<A,B,C,D> |
tuple(A a,
B b,
C c,
D d)
Deprecated.
Returns a
Tuple4 of 4 objects. |
static <A,B,C,D,E> |
tuple(A a,
B b,
C c,
D d,
E e)
Deprecated.
Returns a
Tuple5 of 5 objects. |
public static <A,B> Pair<A,B> pair(A a, B b)
Pair
of 2 objects. Is equivalent to tuple(Object, Object)
.public static <A,B> Pair<A,B> tuple(A a, B b)
Pair
of 2 objects. Is equivalent to pair(Object, Object)
.public static <A,B,C> Tuple3<A,B,C> tuple(A a, B b, C c)
Tuple3
of 3 objects.public static <A,B,C,D> Tuple4<A,B,C,D> tuple(A a, B b, C c, D d)
Tuple4
of 4 objects.Copyright © 2013–2018 jparsec. All rights reserved.