Class AbstractMapEntry
java.lang.Object
com.espertech.esper.common.internal.collection.apachecommons.AbstractKeyValue
com.espertech.esper.common.internal.collection.apachecommons.AbstractMapEntry
- Direct Known Subclasses:
DefaultMapEntry
Abstract Pair class to assist with creating correct
Map.Entry
implementations.- Since:
- Commons Collections 3.0
- Version:
- $Revision$ $Date$
- Author:
- James Strachan, Michael A. Smith, Neil O'Toole, Stephen Colebourne
-
Field Summary
Fields inherited from class com.espertech.esper.common.internal.collection.apachecommons.AbstractKeyValue
key, value
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractMapEntry
(Object key, Object value) Constructs a new entry with the given key and given value. -
Method Summary
Methods inherited from class com.espertech.esper.common.internal.collection.apachecommons.AbstractKeyValue
getKey, getValue, toString
-
Constructor Details
-
AbstractMapEntry
Constructs a new entry with the given key and given value.- Parameters:
key
- the key for the entry, may be nullvalue
- the value for the entry, may be null
-
-
Method Details
-
setValue
Sets the value stored in thisMap.Entry
.This
Map.Entry
is not connected to a Map, so only the local data is changed. -
equals
Compares thisMap.Entry
with anotherMap.Entry
.Implemented per API documentation of
Map.Entry.equals(Object)
-
hashCode
public int hashCode()Gets a hashCode compatible with the equals method.Implemented per API documentation of
Map.Entry.hashCode()
-