Class Pair<T1,​T2>

  • public class Pair<T1,​T2>
    extends java.lang.Object
    Generic immutable container which has two values of possibly different types.
    • Constructor Summary

      Constructor Description
      Pair​(T1 left, T2 right)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T1 getLeft()  
      T2 getRight()  
      • Methods inherited from class java.lang.Object

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

      • Pair

        public Pair​(T1 left,
                    T2 right)
    • Method Detail

      • getLeft

        public T1 getLeft()
      • getRight

        public T2 getRight()