Class Quintet<A,​B,​C,​D,​E>

  • Type Parameters:
    A - the type of the first element
    B - the type of the second element
    C - the type of the third element
    D - the type of the fourth element
    E - the type of the fifth element
    All Implemented Interfaces:
    Serializable

    public class Quintet<A,​B,​C,​D,​E>
    extends Object
    implements Serializable
    A tuple of five elements.
    Since:
    4.0
    Author:
    Anindya Chatterjee
    See Also:
    Serialized Form
    • Constructor Detail

      • Quintet

        public Quintet()
      • Quintet

        public Quintet​(A first,
                       B second,
                       C third,
                       D fourth,
                       E fifth)
    • Method Detail

      • quintet

        public static <A,​B,​C,​D,​E> Quintet<A,​B,​C,​D,​E> quintet​(A a,
                                                                                                             B b,
                                                                                                             C c,
                                                                                                             D d,
                                                                                                             E e)
        Creates a new quintet.
        Type Parameters:
        A - the type parameter
        B - the type parameter
        C - the type parameter
        D - the type parameter
        E - the type parameter
        Parameters:
        a - the a
        b - the b
        c - the c
        d - the d
        e - the e
        Returns:
        the quintet
      • getFirst

        public A getFirst()
      • getSecond

        public B getSecond()
      • getThird

        public C getThird()
      • getFourth

        public D getFourth()
      • getFifth

        public E getFifth()
      • setFirst

        public void setFirst​(A first)
      • setSecond

        public void setSecond​(B second)
      • setThird

        public void setThird​(C third)
      • setFourth

        public void setFourth​(D fourth)
      • setFifth

        public void setFifth​(E fifth)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object