Class Pair<T>
java.lang.Object
com.aquima.interactions.foundation.utility.Pair<T>
Pairs two items and acts like one. It supports equals and hashcode for both. This results in a pair which can be used
as key in a Map.
Pair( "a", "b" ) is smaller then Pair("a","c"); Pair( "c", "b" ) is larger then Pair("a","z");
- Since:
- 5.0
- Author:
- F. van der Meer
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Pair
Constructs a paired object.- Parameters:
first
- The first argument retrievable by executing getFirst() function.second
- The second argument retrievable by executing getSecond() function.
-
-
Method Details