Class Tuple3<A,B,C>

java.lang.Object
org.javimmutable.collections.Tuple3<A,B,C>
All Implemented Interfaces:
Serializable

@Immutable public class Tuple3<A,B,C> extends Object implements Serializable
Immutable container for 3 values.
See Also:
  • Constructor Details

    • Tuple3

      public Tuple3(A first, B second, C third)
  • Method Details

    • of

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

      public A getFirst()
    • getSecond

      public B getSecond()
    • getThird

      public C getThird()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object