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

  • Type Parameters:
    A - The first item type
    B - The second item type
    C - The third item type
    D - The fourth item type
    All Implemented Interfaces:
    Serializable

    public class Quad<A,​B,​C,​D>
    extends Object
    implements Serializable
    Extends Triple by adding one more item, a group of four items
    See Also:
    Serialized Form
    • Method Detail

      • of

        public static <X,​Y,​Z,​Q> Quad<X,​Y,​Z,​Q> of​(X first,
                                                                                     Y second,
                                                                                     Z third,
                                                                                     Q fourth)
        Constructs a new quad tuple of the three items given
        Type Parameters:
        X - The first item type
        Y - The second item type
        Z - The third item type
        Q - The fourth item type
        Parameters:
        first - The first time
        second - The second item
        third - The third item
        fourth - The fourth item
        Returns:
        A typed Quad containing those three items
      • getFirst

        public A getFirst()
        Gets the first item in the quad
        Returns:
        The first item
      • getFourth

        public D getFourth()
        Gets the fourth item in the quad
        Returns:
        The fourth item
      • getSecond

        public B getSecond()
        Gets the second item in the quad
        Returns:
        The second item
      • getThird

        public C getThird()
        Gets the third item in the quad
        Returns:
        The third item