Class Tuple<X,​Y>

  • Type Parameters:
    X - The first object type that will be stored in the Tuple
    Y - The second object type that will be stored in the Tuple

    public class Tuple<X,​Y>
    extends java.lang.Object
    A basic Tuple class
    • Constructor Summary

      Constructors 
      Constructor Description
      Tuple​(X first, Y second)  
    • Constructor Detail

      • Tuple

        public Tuple​(X first,
                     Y second)
    • Method Detail

      • getFirst

        public X getFirst()
      • getSecond

        public Y getSecond()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

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

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