Class Triplet<A,​B,​C>

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

    public class Triplet<A,​B,​C>
    extends Object
    implements Serializable
    This class implements triplet 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

      • Triplet

        public Triplet()
        Construct a triplet.
      • Triplet

        public Triplet​(Triplet<? extends A,​? extends B,​? extends C> triplet)
        Construct a triplet.
        Parameters:
        triplet - the triplet.
      • Triplet

        public Triplet​(A firstValue,
                       B secondValue,
                       C thirdValue)
        Construct a triplet.
        Parameters:
        firstValue - first value.
        secondValue - second value.
        thirdValue - third 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.
      • 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.
      • equals

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

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