Class TriTuple<A,​B,​C>

  • Type Parameters:
    A - The type of the first value.
    B - The type of the second value.
    C - The type of the third value.

    public final class TriTuple<A,​B,​C>
    extends Object
    A tuple of three values of arbitrary type.
    • Method Detail

      • of

        public static <A,​B,​C> TriTuple<A,​B,​C> of​(A one,
                                                                         B two,
                                                                         C three)
        Creates a new tuple for values of arbitrary type.
        Type Parameters:
        A - The type of the first value.
        B - The type of the second value.
        C - The type of the third value.
        Parameters:
        one - First value.
        two - Second value.
        three - Third value.
        Returns:
        The tuple.
        Throws:
        IllegalArgumentException - if all values are null.
      • one

        public A one()
        Returns:
        The one.
      • two

        public B two()
        Returns:
        The two.
      • three

        public C three()
        Returns:
        The three.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object