Class Tuple4<A,B,C,D>

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

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

    • of

      public static <W, X, Y, Z> Tuple4<W,X,Y,Z> of(Tuple3<W,X,Y> wxy, Z z)
      Create a Tuple4 by Tuple3
      Type Parameters:
      W - the first type
      X - the second type
      Y - the third type
      Z - the fourth type
      Parameters:
      wxy - the first three values
      z - the fourth value
      Returns:
      the tuple
    • 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()
      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
    • getFourth

      public D getFourth()
      The fourth value.
      Returns:
      the fourth 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