- Type Parameters:
F - The first value.
S - The second value.
public class Pair<F,S>
extends Object
A Pair of two elements.
- Since:
- v1.5.2
-
Constructor Summary
Constructors
-
Method Summary
Gets you the
Object that was defined as first.
Gets you the
Object that was defined as second.
-
Constructor Details
-
Pair
public Pair(@Nonnull
F first,
@Nonnull
S second)
- Parameters:
first - the first Object.
second - the second Object.
-
Method Details
-
getFirst
@Nonnull
public F getFirst()
Gets you the
Object that was defined as first.
- Returns:
- the first
Object.
-
getSecond
@Nonnull
public S getSecond()
Gets you the
Object that was defined as second.
- Returns:
- the second
Object.