Package org.graffiti.util
Class Pair<T,V>
java.lang.Object
org.graffiti.util.Pair<T,V>
public class Pair<T,V> extends Object
Encapsulates two values in a pair.
- Version:
- 2.7.0
- Author:
- Paul, D. Garkov
- Recent revisions:
- 2.7.0
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Pair
Creates a new Pair object.- Parameters:
first
- the first (left) componentsecond
- the second (right) component
-
-
Method Details
-
getFst
Returns the first (left) component of the pair.- Returns:
- the value of first component
-
getSnd
Returns the second (right) component of the pair.- Returns:
- the value of second component
-
equals
-
hashCode
public int hashCode() -
toString
-