Packages, die Pair verwenden
-
static <FirstType,
SecondType>
Pair<FirstType,SecondType>
Create an empty Pair with both of the given values being null.
static <FirstType,
SecondType>
Pair<FirstType,SecondType>
Pair.of(FirstType first,
SecondType second)
Create a Pair with both of the given values being non null.
static <FirstType,
SecondType>
Pair<FirstType,SecondType>
Create a Pair with first set and second being null
static <FirstType,
SecondType>
Pair<FirstType,SecondType>
Pair.ofNullable(FirstType first,
SecondType second)
Create a Pair with both of the given values being null or non null.
static <FirstType,
SecondType>
Pair<FirstType,SecondType>
Create a Pair with second set and first being null