Package org.jparsec.functors
Class Tuples
java.lang.Object
org.jparsec.functors.Tuples
Deprecated.
Prefer to using a lambda expression to convert to your own type.
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <A,
B> Pair <A, B> pair
(A a, B b) Deprecated.Returns aPair
of 2 objects.static <A,
B> Pair <A, B> tuple
(A a, B b) Deprecated.Returns aPair
of 2 objects.static <A,
B, C> Tuple3 <A, B, C> tuple
(A a, B b, C c) Deprecated.Returns aTuple3
of 3 objects.static <A,
B, C, D>
Tuple4<A, B, C, D> tuple
(A a, B b, C c, D d) Deprecated.Returns aTuple4
of 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 aTuple5
of 5 objects.
-
Constructor Details
-
Tuples
public Tuples()Deprecated.
-
-
Method Details
-
pair
Deprecated.Returns aPair
of 2 objects. Is equivalent totuple(Object, Object)
. -
tuple
Deprecated.Returns aPair
of 2 objects. Is equivalent topair(Object, Object)
. -
tuple
Deprecated.Returns aTuple3
of 3 objects. -
tuple
Deprecated.Returns aTuple4
of 4 objects. -
tuple
Deprecated.Returns aTuple5
of 5 objects.
-