Class AbstractKeyValue
java.lang.Object
com.espertech.esper.common.internal.collection.apachecommons.AbstractKeyValue
- All Implemented Interfaces:
KeyValue
- Direct Known Subclasses:
AbstractMapEntry
Abstract pair class to assist with creating
KeyValue
and Map.Entry
implementations.- Since:
- Commons Collections 3.0
- Version:
- $Revision$ $Date$
- Author:
- James Strachan, Michael A. Smith, Neil O'Toole, Stephen Colebourne
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractKeyValue
(Object key, Object value) Constructs a new pair with the specified key and given value. -
Method Summary
-
Field Details
-
key
The key -
value
The value
-
-
Constructor Details
-
AbstractKeyValue
Constructs a new pair 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
-
-
Method Details
-
getKey
Gets the key from the pair. -
getValue
Gets the value from the pair. -
toString
Gets a debugging String view of the pair.
-