Package com.nimbusds.jose.util
Class Pair<L,R>
java.lang.Object
com.nimbusds.jose.util.Pair<L,R>
- Type Parameters:
L
- the left object type.R
- the right object type
A pair of two objects.
This class is immutable.
- Version:
- 2021-09-30
- Author:
- Alexander Martynov
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Pair
-
-
Method Details
-
of
Creates a new pair of two objects.- Parameters:
left
- The left object,null
if not specified.right
- The right object,null
if not specified.- Returns:
- The pair.
-
getLeft
Returns the left object of this pair.- Returns:
- The left object,
null
if not specified.
-
getRight
Returns the right object of this pair.- Returns:
- The right object,
null
if not specified.
-