Package org.jparsec.functors
Class Tuples
- java.lang.Object
-
- org.jparsec.functors.Tuples
-
@Deprecated public final class Tuples extends java.lang.ObjectDeprecated.Prefer to using a lambda expression to convert to your own type.CreatesPairand 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
Constructors Constructor Description Tuples()Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static <A,B>
Pair<A,B>pair(A a, B b)Deprecated.Returns aPairof 2 objects.static <A,B>
Pair<A,B>tuple(A a, B b)Deprecated.Returns aPairof 2 objects.static <A,B,C>
Tuple3<A,B,C>tuple(A a, B b, C c)Deprecated.Returns aTuple3of 3 objects.static <A,B,C,D>
Tuple4<A,B,C,D>tuple(A a, B b, C c, D d)Deprecated.Returns aTuple4of 4 objects.static <A,B,C,D,E>
Tuple5<A,B,C,D,E>tuple(A a, B b, C c, D d, E e)Deprecated.Returns aTuple5of 5 objects.
-
-
-
Method Detail
-
pair
public static <A,B> Pair<A,B> pair(A a, B b)
Deprecated.Returns aPairof 2 objects. Is equivalent totuple(Object, Object).
-
tuple
public static <A,B> Pair<A,B> tuple(A a, B b)
Deprecated.Returns aPairof 2 objects. Is equivalent topair(Object, Object).
-
tuple
public static <A,B,C> Tuple3<A,B,C> tuple(A a, B b, C c)
Deprecated.Returns aTuple3of 3 objects.
-
tuple
public static <A,B,C,D> Tuple4<A,B,C,D> tuple(A a, B b, C c, D d)
Deprecated.Returns aTuple4of 4 objects.
-
-