Class Pair<X,​Y>

  • Type Parameters:
    X - the type of the first element
    Y - the type of the second element

    public class Pair<X,​Y>
    extends java.lang.Object
    Simple class that represents a tuple.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      X first  
      Y second  
    • Constructor Summary

      Constructors 
      Constructor Description
      Pair​(X x, Y y)  
    • Method Summary

      • Methods inherited from class java.lang.Object

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

      • first

        public final X first
      • second

        public final Y second
    • Constructor Detail

      • Pair

        public Pair​(X x,
                    Y y)