Class Pair<T,U>



  • public final class Pair<T,U>
    extends java.lang.Object
    A simple paired value class
    • Field Summary

      Fields 
      Modifier and Type Field Description
      T first  
      U second  
    • Constructor Summary

      Constructors 
      Constructor Description
      Pair(T first, U second)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static <T,U> Pair<T,U> pair(T first, U second)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • first

        public final T first
      • second

        public final U second
    • Constructor Detail

      • Pair

        public Pair(T first,
                    U second)
    • Method Detail

      • pair

        public static <T,U> Pair<T,U> pair(T first,
                                           U second)
      • toString

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