Class InterchangeablePair<F,S>
java.lang.Object
com.espertech.esper.common.internal.collection.InterchangeablePair<F,S>
General-purpose pair of values of any type. The pair equals another pair if
the objects that form the pair equal in any order, ie. f pair f object equals (.equals)
the s pair f object or s object, and the f pair s object equals the s pair f object
or s object.
-
Constructor Details
-
InterchangeablePair
Construct pair of values.- Parameters:
f
- is the f values
- is the s value
-
-
Method Details
-
getFirst
Returns f value within pair.- Returns:
- f value within pair
-
getSecond
Returns s value within pair.- Returns:
- s value within pair
-
setFirst
Set the f value of the pair to a new value.- Parameters:
f
- value to be set
-
setSecond
Set the s value of the pair to a new value.- Parameters:
s
- value to be set
-
equals
-
hashCode
public int hashCode() -
toString
-