jfun.parsec
public class Tuples extends Object
Since: version 1.1
Method Summary | |
---|---|
static <A,B> Pair<A,B> | pair(A a, B b)
Create a Pair object. |
static <A,B,C> Tuple3<A,B,C> | tuple(A a, B b, C c)
Create a 3-object tuple. |
static <A,B,C,D> Tuple4<A,B,C,D> | tuple(A a, B b, C c, D d)
Create a 4-object tuple. |
static <A,B,C,D,E> Tuple5<A,B,C,D,E> | tuple(A a, B b, C c, D d, E e)
Create a 5-object tuple. |
Parameters: a the first object. b the 2nd object.
Returns: the Pair object.
Parameters: a the 1st object. b the 2nd object. c the 3rd object.
Returns: the tuple.
Parameters: a the 1st object. b the 2nd object. c the 3rd object. d the 4th object.
Returns: the tuple.
Parameters: a the 1st object. b the 2nd object. c the 3rd object. d the 4th object. e the 5th object.
Returns: the tuple.