Class Triple<T,U,V>

java.lang.Object
org.alfresco.util.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 Details

    • 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 Details

    • 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
    • toString

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