Class Quintet<T1,T2,T3,T4,T5>

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

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

    • Quintet

      public Quintet(T1 first, T2 second, T3 third, T4 fourth, T5 fifth)
      Constructor for Quintet.
      Parameters:
      first - a T1 object
      second - a T2 object
      third - a T3 object
      fourth - a T4 object
      fifth - a T5 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
    • fourth

      public T4 fourth()
      The fourth element of the tuple
      Returns:
      The fourth element
    • fifth

      public T5 fifth()
      The fifth element of the tuple
      Returns:
      The fith 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