Class Quartet<A,​B,​C,​D>

  • 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
    All Implemented Interfaces:
    Serializable

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

      • Quartet

        public Quartet()
      • Quartet

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

      • quartet

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

        public A getFirst()
      • getSecond

        public B getSecond()
      • getThird

        public C getThird()
      • getFourth

        public D getFourth()
      • setFirst

        public void setFirst​(A first)
      • setSecond

        public void setSecond​(B second)
      • setThird

        public void setThird​(C third)
      • setFourth

        public void setFourth​(D fourth)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object