Class TriTuple<A,B,C>

java.lang.Object
org.eclipse.hono.util.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 Details

    • 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.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object