Class Triple<K1,​K2,​K3>


  • public class Triple<K1,​K2,​K3>
    extends Object
    • Constructor Detail

      • Triple

        public Triple​(K1 k1,
                      K2 k2,
                      K3 k3)
        Creates a new triple using the keys provided.
        Parameters:
        k1 -
        k2 -
    • Method Detail

      • newTriple

        public static <K1,​K2,​K3> Triple<K1,​K2,​K3> newTriple​(K1 k1,
                                                                                    K2 k2,
                                                                                    K3 k3)
        static factory method
        Type Parameters:
        K1 -
        K2 -
        Parameters:
        k1 -
        k2 -
        Returns:
      • getK1

        public K1 getK1()
        Returns:
        the first key
      • getK2

        public K2 getK2()
        Returns:
        the second key
      • getK3

        public K3 getK3()
        Returns:
        the third key
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object