Class Pair<A,B>
java.lang.Object
de.eldoria.eldoutilities.container.Pair<A,B>
- Type Parameters:
A
- value AB
- value B
Contains a immutable pair of two values
- Since:
- 1.0.0
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
first
-
second
-
-
Constructor Details
-
Pair
Create a new pair.- Parameters:
first
- first valuesecond
- second value
-
-
Method Details
-
of
Create a new pair.- Type Parameters:
X
- type of first valueY
- type of second value- Parameters:
x
- first valuey
- second value- Returns:
- new pair
-
equals
-
hashCode
public int hashCode() -
toString
-