Package org.openstreetmap.josm.tools
Class Pair<A,B>
java.lang.Object
org.openstreetmap.josm.tools.Pair<A,B>
- Type Parameters:
A- Type of first itemB- Type of second item
A pair of objects.
- Since:
- 429
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
a
The first item -
b
The second item
-
-
Constructor Details
-
Pair
Constructs a newPair.- Parameters:
a- The first itemb- The second item
-
-
Method Details
-
hashCode
-
equals
-
sort
Sorts a single-typed pair soa <= b.- Type Parameters:
T- type of both elements- Parameters:
p- pair- Returns:
p
-
toString
-
create
Convenient constructor method- Type Parameters:
U- type of first itemV- type of second item- Parameters:
u- The first itemv- The second item- Returns:
- The newly created Pair(u,v)
-