Package com.avoka.core.util
Class Pair<F,S>
java.lang.Object
com.avoka.core.util.Pair<F,S>
- Type Parameters:
F
- the type of the first component of the pairS
- the type of the second component of the pair
A strongly typed pair of items.
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
first
The first object in the pair -
second
The second object in the pair
-
-
Constructor Details
-
Pair
public Pair()Constructs an uninitialised pair -
Pair
Constructs a pair of the given objects- Parameters:
firstObject
- the first objectsecondObject
- the second object
-
-
Method Details
-
toString
-
getFirst
Return the first object in the pair Added to enable Velocity to resolve ${pair.first}- Returns:
- the first object
- Since:
- 17.11.0
-
getSecond
Return the second object in the pair Added to enable Velocity to resolve ${pair.second}- Returns:
- the second object
- Since:
- 17.11.0
-