Class Pair<F,S>
java.lang.Object
manifold.rt.api.util.Pair<F,S>
- Type Parameters:
F- type of first valueS- type of second value
A simple class to type-safely model a pair of values.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
and
andis a "binding" constant that enables clean syntax for creating pairs:
Pair<String,Integer> pair = "Moe" and 88;
Use withMap#mapOfextension method viamanifold-collectionsdependency.
Map<String,Integer> map = Map.mapOf("Moe" and 77, "Larry" and 88, "Curly" and 99);
-
-
Constructor Details
-
Pair
-
-
Method Details
-
getFirst
-
getSecond
-
make
-
equals
-
hashCode
-
toString
-