Class Triplet<A,​B,​C>

  • Type Parameters:
    A - type of first
    B - type of second
    C - type of third

    public final class Triplet<A,​B,​C>
    extends java.lang.Object
    3-elements utility object.The elements of the triplet might be null.
    Since:
    20.12.0
    • Constructor Detail

      • Triplet

        public Triplet​(A first,
                       B second,
                       C third)
    • Method Detail

      • setFirst

        public void setFirst​(A first)
      • setSecond

        public void setSecond​(B second)
      • setThird

        public void setThird​(C third)
      • first

        public A first()
      • second

        public B second()
      • third

        public C third()
      • isNull

        public boolean isNull()
        Returns:
        true when all three elements are null.
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object