Class Tuple<A,​B>

  • Type Parameters:
    A -
    B -

    public class Tuple<A,​B>
    extends java.lang.Object
    Tuple: A pair of objects
    Author:
    pablocingolani
    • Field Summary

      Fields 
      Modifier and Type Field Description
      A first  
      B second  
    • Constructor Summary

      Constructors 
      Constructor Description
      Tuple​(A first, B second)  
    • Field Detail

      • first

        public final A first
      • second

        public final B second
    • Constructor Detail

      • Tuple

        public Tuple​(A first,
                     B second)
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • getFirst

        public A getFirst()
      • getSecond

        public B getSecond()
      • hashCode

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

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