Class Tuple5<T1,​T2,​T3,​T4,​T5>

  • 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
    T5 - the type of the 5th element
    All Implemented Interfaces:
    Serializable, Tuple
    Direct Known Subclasses:
    Tuple6

    public class Tuple5<T1,​T2,​T3,​T4,​T5>
    extends Tuple4<T1,​T2,​T3,​T4>
    A Tuple of 5 elements.
    Since:
    2.0.0
    Author:
    Marcel Overdijk
    See Also:
    Serialized Form
    • Constructor Detail

      • Tuple5

        public Tuple5​(T1 element1,
                      T2 element2,
                      T3 element3,
                      T4 element4,
                      T5 element5)
        Constructs a new Tuple with the supplied elements.
    • Method Detail

      • getElement5

        public T5 getElement5()
        Returns the 5th element of this tuple.
        Returns:
        the 5th element of this tuple
      • setElement5

        public void setElement5​(T5 element5)
        Sets the 5th 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 Tuple4<T1,​T2,​T3,​T4>
        Returns:
        the number of elements of this tuple