Package org.eclipse.hono.util
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 Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
int
hashCode()
static <A,B,C>
TriTuple<A,B,C>of(A one, B two, C three)
Creates a new tuple for values of arbitrary type.A
one()
C
three()
String
toString()
B
two()
-
-
-
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 arenull
.
-
one
public A one()
- Returns:
- The one.
-
two
public B two()
- Returns:
- The two.
-
three
public C three()
- Returns:
- The three.
-
-