Class Pair<F,S>
java.lang.Object
com.espertech.esper.common.internal.collection.Pair<F,S>
- 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. f pair f object equals (.equals) the s pair f object,
and the f pair s object equals the s pair s object.
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <K,
V> Pair<K, V> createPair
(K key, V value) boolean
getFirst()
Returns f value within pair.Returns s value within pair.int
hashCode()
void
Set the f value of the pair to a new value.void
Set the s value of the pair to a new value.toString()
-
Field Details
-
EPTYPE
-
-
Constructor Details
-
Pair
Construct pair of values.- Parameters:
f
- is the f values
- is the s value
-
-
Method Details
-
createPair
-
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
-