Class DefaultMapEntry
java.lang.Object
com.espertech.esper.common.internal.collection.apachecommons.AbstractKeyValue
com.espertech.esper.common.internal.collection.apachecommons.AbstractMapEntry
com.espertech.esper.common.internal.collection.apachecommons.DefaultMapEntry
A restricted implementation of
Map.Entry
that prevents
the Map.Entry
contract from being broken.- 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
ConstructorDescriptionDefaultMapEntry
(KeyValue pair) Constructs a new entry from the specifiedKeyValue
.DefaultMapEntry
(Object key, Object value) Constructs a new entry with the specified key and given value.DefaultMapEntry
(Map.Entry entry) Constructs a new entry from the specifiedMap.Entry
. -
Method Summary
Methods inherited from class com.espertech.esper.common.internal.collection.apachecommons.AbstractMapEntry
equals, hashCode, setValue
Methods inherited from class com.espertech.esper.common.internal.collection.apachecommons.AbstractKeyValue
getKey, getValue, toString
-
Constructor Details
-
DefaultMapEntry
Constructs a new entry with the specified key and given value.- Parameters:
key
- the key for the entry, may be nullvalue
- the value for the entry, may be null
-
DefaultMapEntry
Constructs a new entry from the specifiedKeyValue
.- Parameters:
pair
- the pair to copy, must not be null- Throws:
NullPointerException
- if the entry is null
-
DefaultMapEntry
Constructs a new entry from the specifiedMap.Entry
.- Parameters:
entry
- the entry to copy, must not be null- Throws:
NullPointerException
- if the entry is null
-