Package com.bobocode.bring.core.utils
Class Pair<L,R>
java.lang.Object
com.bobocode.bring.core.utils.Pair<L,R>
- Type Parameters:
L
- The type of the left valueR
- The type of the right value
A simple generic class representing a pair of two values: left and right.
- Since:
- 1.0
- Author:
- Blyzhnytsia Team
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
Constructor Details
-
Pair
public Pair()
-
-
Method Details
-
of
Creates a new Pair object with the specified left and right values.- Type Parameters:
L
- The type of the left valueR
- The type of the right value- Parameters:
left
- The left valueright
- The right value- Returns:
- A new Pair object with the given left and right values
-