Class Tuple4<T1,T2,T3,T4>

Type Parameters:
T1 - the type of the 1st element
T2 - the type of the 2nd element
T3 - the type of the 3rd element
T4 - the type of the 4th element
All Implemented Interfaces:
Tuple
Direct Known Subclasses:
Tuple5

public class Tuple4<T1,T2,T3,T4> extends Tuple3<T1,T2,T3>
A Tuple of 4 elements.
Since:
2.0.0
  • Constructor Details

    • Tuple4

      public Tuple4(T1 element1, T2 element2, T3 element3, T4 element4)
      Constructs a new Tuple with the supplied elements.
  • Method Details

    • getElement4

      public T4 getElement4()
      Returns the 4th element of this tuple.
      Returns:
      the 4th element of this tuple
    • setElement4

      public void setElement4(T4 element4)
      Sets the 4th element of this tuple.
    • size

      public int size()
      Description copied from interface: Tuple
      Returns the number of elements of this tuple.
      Specified by:
      size in interface Tuple
      Overrides:
      size in class Tuple3<T1,T2,T3>
      Returns:
      the number of elements of this tuple
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Tuple3<T1,T2,T3>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Tuple3<T1,T2,T3>