Class Triple<A,​B,​C>


  • public final class Triple<A,​B,​C>
    extends java.lang.Object
    A simple class that holds a pair of values. There are many implementations of this but i didnt want to pull in another library only for a simple class.
    • Constructor Summary

      Constructors 
      Constructor Description
      Triple​(A first, B second, C third)
      Create a pair of values.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      A getFirst()
      Get the first of the Triple.
      B getSecond()
      Get the second of the Triple.
      C getThird()
      Get the third of the Triple.
      int 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​(A first,
                      B second,
                      C third)
        Create a pair of values.
        Parameters:
        first - first of Triple
        second - second of Triple
        third - third of a Triple
    • Method Detail

      • getFirst

        public A getFirst()
        Get the first of the Triple.
        Returns:
        first of the Triple
      • getSecond

        public B getSecond()
        Get the second of the Triple.
        Returns:
        second of the Triple
      • getThird

        public C getThird()
        Get the third of the Triple.
        Returns:
        third of the Triple
      • toString

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

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

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