|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjfun.parsec.Tuples
public class Tuples
This class is the facade to create various tuple java beans.
Constructor Summary | |
---|---|
Tuples()
|
Method Summary | ||
---|---|---|
static
|
pair(A a,
B b)
Create a Pair object. |
|
static
|
tuple(A a,
B b,
C c)
Create a 3-object tuple. |
|
static
|
tuple(A a,
B b,
C c,
D d)
Create a 4-object tuple. |
|
static
|
tuple(A a,
B b,
C c,
D d,
E e)
Create a 5-object tuple. |
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)
a
- the first object.b
- the 2nd object.
public static <A,B,C> Tuple3<A,B,C> tuple(A a, B b, C c)
a
- the 1st object.b
- the 2nd object.c
- the 3rd object.
public static <A,B,C,D> Tuple4<A,B,C,D> tuple(A a, B b, C c, D d)
a
- the 1st object.b
- the 2nd object.c
- the 3rd object.d
- the 4th object.
public static <A,B,C,D,E> Tuple5<A,B,C,D,E> tuple(A a, B b, C c, D d, E e)
a
- the 1st object.b
- the 2nd object.c
- the 3rd object.d
- the 4th object.e
- the 5th object.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |