Class Triplet<T1,T2,T3>

java.lang.Object
org.storynode.pigeon.tuple.Tuple
org.storynode.pigeon.tuple.Triplet<T1,T2,T3>
Type Parameters:
T1 - The type of the first element
T2 - The type of the second element
T3 - The type of the third element

public final class Triplet<T1,T2,T3> extends Tuple
Triplet class.
Since:
1.0.0
Author:
Andrea Coronese
  • Constructor Details

    • Triplet

      public Triplet(T1 first, T2 second, T3 third)
      Constructor for Triplet.
      Parameters:
      first - a T1 object
      second - a T2 object
      third - a T3 object
  • Method Details

    • first

      public T1 first()
      The first element of the tuple
      Returns:
      The first element
    • second

      public T2 second()
      The second element of the tuple
      Returns:
      The second element
    • third

      public T3 third()
      The third element of the tuple
      Returns:
      The third element
    • cardinality

      public int cardinality()
    • at

      @NotNull public @NotNull Option<Object> at(int index)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object