Class Triple<T,​U,​V>


  • public final class Triple<T,​U,​V>
    extends java.lang.Object
    Utility class for containing three things that aren't like each other.
    Since:
    4.0
    • Constructor Summary

      Constructors 
      Constructor Description
      Triple​(T first, U second, V third)
      Make a new one.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object other)
      Override of equals.
      T getFirst()
      Get the first member of the tuple.
      U getSecond()
      Get the second member of the tuple.
      V getThird()
      Get the third member of the tuple.
      int hashCode()
      Override of hashCode.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Triple

        public Triple​(T first,
                      U second,
                      V third)
        Make a new one.
        Parameters:
        first - The first member.
        second - The second member.
        third - The third member.
    • Method Detail

      • getFirst

        public T getFirst()
        Get the first member of the tuple.
        Returns:
        The first member.
      • getSecond

        public U getSecond()
        Get the second member of the tuple.
        Returns:
        The second member.
      • getThird

        public V getThird()
        Get the third member of the tuple.
        Returns:
        The third member.
      • equals

        public boolean equals​(java.lang.Object other)
        Override of equals.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        other - The thing to compare to.
        Returns:
        equality.
      • hashCode

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

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