Class Triple<T,​U,​V>


  • public final class Triple<T,​U,​V>
    extends Object
    Utility class for containing three things that aren't like each other.
    Since:
    4.0
    • 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​(Object other)
        Override of equals.
        Overrides:
        equals in class Object
        Parameters:
        other - The thing to compare to.
        Returns:
        equality.
      • hashCode

        public int hashCode()
        Override of hashCode.
        Overrides:
        hashCode in class Object