Class Tuple3<T1,T2,T3>

java.lang.Object
org.hawaiiframework.util.tuple.Tuple1<T1>
org.hawaiiframework.util.tuple.Tuple2<T1,T2>
org.hawaiiframework.util.tuple.Tuple3<T1,T2,T3>
Type Parameters:
T1 - the type of the 1st element
T2 - the type of the 2nd element
T3 - the type of the 3rd element
All Implemented Interfaces:
Tuple
Direct Known Subclasses:
Tuple4

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

    • Tuple3

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

    • getElement3

      public T3 getElement3()
      Returns the 3rd element of this tuple.
      Returns:
      the 3rd element of this tuple
    • setElement3

      public void setElement3(T3 element3)
      Sets the 3rd 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 Tuple2<T1,T2>
      Returns:
      the number of elements of this tuple
    • equals

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

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