public class Pair<L,R>
extends Object
A
Pair
is a tupel of two different values with potentially two different types.
- Since:
- 25.06.2021
- Author:
- Juyas
-
Constructor Summary
Constructors
Create a
Pair
with no values.
Create a
Pair
of two values.
-
Method Summary
Extends this
Pair
with a third value to a triple.
void
void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Pair
public Pair(L left,
R right)
Create a
Pair
of two values.
- Parameters:
left
- first value
right
- second value
-
Pair
public Pair()
Create a
Pair
with no values.
-
Method Details
-
-
setLeft
public void setLeft(L left)
- See Also:
-
-
-
setRight
public void setRight(R right)
- See Also:
-
-
extend
public <RR> Triple<L,R,RR> extend(RR right)
Extends this
Pair
with a third value to a triple.
- See Also:
-