Class Pair<A,B>
java.lang.Object
VASSAL.tools.lang.Pair<A,B>
- Type Parameters:
A
- the type of the first objectB
- the type of the second object
An immutable class for pairs of objects.
- Since:
- 3.2.0
- Author:
- Joel Uckelman
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
first
-
second
-
-
Constructor Details
-
Pair
-
-
Method Details
-
hashCode
-
equals
-
of
A convenience method for creating pairs without specifying the types.- Parameters:
first
- the first valuesecond
- the second value- Returns:
- the pair containing
first
and (@code second}
-