Class Tuple4<A,B,C,D>

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

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

    • Tuple4

      public Tuple4(A first, B second, C third, D fourth)
  • Method Details

    • of

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

      public A getFirst()
    • getSecond

      public B getSecond()
    • getThird

      public C getThird()
    • getFourth

      public D getFourth()
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object