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
public class Pair<F,S> extends Object
A strongly typed pair of items.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description F
getFirst()
Return the first object in the pair Added to enable Velocity to resolve ${pair.first}S
getSecond()
Return the second object in the pair Added to enable Velocity to resolve ${pair.second}String
toString()
-
-
-
Method Detail
-
toString
public String toString()
-
getFirst
public F 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
public S getSecond()
Return the second object in the pair Added to enable Velocity to resolve ${pair.second}- Returns:
- the second object
- Since:
- 17.11.0
-
-