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

  • Type Parameters:
    A - is the type of the first value.
    B - is the type of the second value.
    C - is the type of the third value.
    D - is the type of the fourth value.
    All Implemented Interfaces:
    Serializable

    public class Quadruplet<A,​B,​C,​D>
    extends Object
    implements Serializable
    This class implements quadruplet of values.
    Version:
    17.0 2020-01-04 14:41:38
    Author:
    Stéphane GALLAND
    See Also:
    Serialized Form
    Maven Group Id:
    org.arakhne.afc.core
    Maven Artifact Id:
    util
    • Constructor Detail

      • Quadruplet

        public Quadruplet()
        Construct the quadruplet.
      • Quadruplet

        public Quadruplet​(Quadruplet<? extends A,​? extends B,​? extends C,​? extends D> quad)
        Construct the quadruplet.
        Parameters:
        quad - the quadruplet.
      • Quadruplet

        public Quadruplet​(A firstValue,
                          B secondValue,
                          C thirdValue,
                          D forthValue)
        Construct the quadruplet.
        Parameters:
        firstValue - first value.
        secondValue - second value.
        thirdValue - third value.
        forthValue - forth value.
    • Method Detail

      • getA

        @Pure
        public A getA()
        Replies the first value of the pair.
        Returns:
        the first value of the pair.
      • getB

        @Pure
        public B getB()
        Replies the second value of the pair.
        Returns:
        the second value of the pair.
      • getC

        @Pure
        public C getC()
        Replies the third value of the pair.
        Returns:
        the third value of the pair.
      • getD

        @Pure
        public D getD()
        Replies the fourth value of the pair.
        Returns:
        the fourth value of the pair.
      • setA

        public void setA​(A firstValue)
        Set the first value of the pair.
        Parameters:
        firstValue - is the first value of the pair.
      • setB

        public void setB​(B secondValue)
        Set the second value of the pair.
        Parameters:
        secondValue - is the second value of the pair.
      • setC

        public void setC​(C thirdValue)
        Set the third value of the pair.
        Parameters:
        thirdValue - is the third value of the pair.
      • setD

        public void setD​(D forthValue)
        Set the fourth value of the pair.
        Parameters:
        forthValue - is the fourth value of the pair.
      • equals

        @Pure
        public boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • hashCode

        @Pure
        public int hashCode()
        Overrides:
        hashCode in class Object