Class UniformPair<T>
java.lang.Object
com.espertech.esper.common.internal.collection.UniformPair<T>
- All Implemented Interfaces:
Serializable
General-purpose pair of values of any type. The pair only equals another pair if
the objects that form the pair equal, ie. first pair first object equals (.equals) the second pair first object,
and the first pair second object equals the second pair second object.
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
EPTYPE
-
EMPTY_PAIR
-
-
Constructor Details
-
UniformPair
Construct pair of values.- Parameters:
first
- is the first valuesecond
- is the second value
-
-
Method Details
-
getFirst
Returns first value within pair.- Returns:
- first value within pair
-
getSecond
Returns second value within pair.- Returns:
- second value within pair
-
setFirst
Set the first value of the pair to a new value.- Parameters:
first
- value to be set
-
setSecond
Set the second value of the pair to a new value.- Parameters:
second
- value to be set
-
equals
-
hashCode
public int hashCode() -
toString
-