|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.jparsec.functors.Tuples
public final class Tuples
Creates 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 Summary | |
---|---|
Tuples()
|
Method Summary | ||
---|---|---|
static
|
pair(A a,
B b)
Returns a Pair of 2 objects. |
|
static
|
tuple(A a,
B b)
Returns a Pair of 2 objects. |
|
static
|
tuple(A a,
B b,
C c)
Returns a Tuple3 of 3 objects. |
|
static
|
tuple(A a,
B b,
C c,
D d)
Returns a Tuple4 of 4 objects. |
|
static
|
tuple(A a,
B b,
C c,
D d,
E e)
Returns a Tuple5 of 5 objects. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Tuples()
Method Detail |
---|
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.
public static <A,B,C,D,E> Tuple5<A,B,C,D,E> tuple(A a, B b, C c, D d, E e)
Tuple5
of 5 objects.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |