Class Tuple3<A,B,C>

java.lang.Object
org.fuchss.tools.tuple.Tuple3<A,B,C>
Type Parameters:
A - the first type
B - the second type
C - the third type
All Implemented Interfaces:
Serializable

public final class Tuple3<A,B,C> extends Object implements Serializable
A simple tuple of three values
Author:
Dominik Fuchss
See Also:
  • Method Details

    • of

      public static <A, B, C> Tuple3<A,B,C> of(A first, B second, C third)
    • getFirst

      public A getFirst()
      The first value.
      Returns:
      the first value
    • getSecond

      public B getSecond()
      The second value.
      Returns:
      the second value
    • getThird

      public C getThird()
      The third value.
      Returns:
      the third value
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object