Package org.eclipse.hono.util
Class Pair<A,B>
java.lang.Object
org.eclipse.hono.util.Pair<A,B>
- Type Parameters:
A
- The type of the first value.B
- The type of the second value.
A pair of two values of arbitrary type.
-
Method Summary
-
Method Details
-
of
Creates a new pair for two values of arbitrary type.- Type Parameters:
A
- The type of the first value.B
- The type of the second value.- Parameters:
one
- First value.two
- Second value.- Returns:
- The pair.
- Throws:
IllegalArgumentException
- if all values arenull
.
-
one
- Returns:
- The one.
-
two
- Returns:
- The two.
-
toString
-
hashCode
public int hashCode() -
equals
-