Package com.nimbusds.jose.util
Class Pair<L,R>
- java.lang.Object
-
- com.nimbusds.jose.util.Pair<L,R>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description L
getLeft()
Returns the left object of this pair.R
getRight()
Returns the right object of this pair.static <L,R>
Pair<L,R>of(L left, R right)
Creates a new pair of two objects.
-
-
-
Method Detail
-
of
public static <L,R> Pair<L,R> of(L left, R right)
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
public L getLeft()
Returns the left object of this pair.- Returns:
- The left object,
null
if not specified.
-
-