Package tools.helperclasses
Class AbstractPair<T,U>
Object
AbstractPair<T,U>
- Direct Known Subclasses:
AbstractMutablePair
,Pair
public abstract class AbstractPair<T,U>
extends Object
-
Constructor Summary
Constructors Constructor Description AbstractPair()
-
Method Summary
-
Constructor Details
-
AbstractPair
public AbstractPair()
-
-
Method Details
-
getFirst
Returns the value of the first item in the pair- Returns:
- the value of the first item in the pair
-
getSecond
Returns the value of the second item in the pair- Returns:
- the value of the second item in the pair
-
toString
public String toString()Returns the toString of the pair in the form<first, second>
- Overrides:
toString
in classObject
- Returns:
- the toString as specified
-