Class Tuples


  • @Deprecated
    public final class Tuples
    extends java.lang.Object
    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 
      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 a Pair of 2 objects.
      static <A,​B>
      Pair<A,​B>
      tuple​(A a, B b)
      Deprecated.
      Returns a Pair of 2 objects.
      static <A,​B,​C>
      Tuple3<A,​B,​C>
      tuple​(A a, B b, C c)
      Deprecated.
      Returns a Tuple3 of 3 objects.
      static <A,​B,​C,​D>
      Tuple4<A,​B,​C,​D>
      tuple​(A a, B b, C c, D d)
      Deprecated.
      Returns a Tuple4 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 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

      • Tuples

        public Tuples()
        Deprecated.
    • Method Detail

      • pair

        public static <A,​B> Pair<A,​B> pair​(A a,
                                                       B b)
        Deprecated.
        Returns a Pair of 2 objects. Is equivalent to tuple(Object, Object).
      • tuple

        public static <A,​B> Pair<A,​B> tuple​(A a,
                                                        B b)
        Deprecated.
        Returns a Pair of 2 objects. Is equivalent to pair(Object, Object).
      • tuple

        public static <A,​B,​C> Tuple3<A,​B,​C> tuple​(A a,
                                                                          B b,
                                                                          C c)
        Deprecated.
        Returns a Tuple3 of 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 a Tuple4 of 4 objects.
      • tuple

        public 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 a Tuple5 of 5 objects.