Package org.oristool.util
Class Pair<A,B>
java.lang.Object
org.oristool.util.Pair<A,B>
- Type Parameters:
A
- type of first elementB
- type of second element
Immutable pair of elements.
-
Method Summary
-
Method Details
-
of
Creates a pair of elements.- Type Parameters:
A
- type of the first elementB
- type of the second element- Parameters:
first
- first elementsecond
- second element- Returns:
- pair of the two input elements
-
first
-
second
-
equals
-
hashCode
public int hashCode() -
toString
-