Package tools.helperclasses
Class Pair<T,U>
Object
AbstractPair<T,U>
Pair<T,U>
public class Pair<T,U> extends AbstractPair<T,U>
-
Constructor Details
-
Pair
Creates a pair by specifying its values- Parameters:
first
- first value in the pairsecond
- second value in the pair
-
Pair
Creates a pair using another pair- Parameters:
pair
- the pair containing the values to be used
-
Pair
Creates a pair using a map entry- Parameters:
entry
- the entry containing the values to be used
-
-
Method Details
-
getFirst
Description copied from class:AbstractPair
Returns the value of the first item in the pair- Specified by:
getFirst
in classAbstractPair<T,U>
- Returns:
- the value of the first item in the pair
-
getSecond
Description copied from class:AbstractPair
Returns the value of the second item in the pair- Specified by:
getSecond
in classAbstractPair<T,U>
- Returns:
- the value of the second item in the pair
-