Class Pair<T,​U>


  • public class Pair<T,​U>
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      T _1  
      U _2  
    • Constructor Summary

      Constructors 
      Constructor Description
      Pair​(T _1, U _2)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static <T,​U>
      java.util.List<T>
      _1​(java.util.List<Pair<T,​U>> items)  
      static <T,​U>
      java.util.List<U>
      _2​(java.util.List<Pair<T,​U>> items)  
      boolean equals​(java.lang.Object obj)  
      int hashCode()  
      static <T,​U>
      Pair<T,​U>
      of​(T _1, U _2)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • _1

        public final T _1
      • _2

        public final U _2
    • Constructor Detail

      • Pair

        public Pair​(T _1,
                    U _2)
    • Method Detail

      • of

        public static <T,​U> Pair<T,​U> of​(T _1,
                                                     U _2)
      • _1

        public static <T,​U> java.util.List<T> _1​(java.util.List<Pair<T,​U>> items)
      • _2

        public static <T,​U> java.util.List<U> _2​(java.util.List<Pair<T,​U>> items)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object