Class Tuples


  • public final class Tuples
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <A,​B>
      Pair<A,​B>
      create​(A a, B b)  
      static <A,​B,​C>
      Triple<A,​B,​C>
      create​(A a, B b, C c)  
      static <A,​B>
      Pair<A,​B>
      pair​(A a, B b)  
      static <A,​B>
      java.util.Map<A,​B>
      toMap​(Pair<A,​B>... pairs)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • pair

        public static <A,​B> Pair<A,​B> pair​(A a,
                                                       B b)
      • create

        public static <A,​B> Pair<A,​B> create​(A a,
                                                         B b)
      • create

        public static <A,​B,​C> Triple<A,​B,​C> create​(A a,
                                                                           B b,
                                                                           C c)
      • toMap

        @SafeVarargs
        public static <A,​B> java.util.Map<A,​B> toMap​(Pair<A,​B>... pairs)