|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.collection.apachecommons.AbstractKeyValue
public abstract class AbstractKeyValue
Abstract pair class to assist with creating KeyValue
and Map.Entry
implementations.
Field Summary | |
---|---|
protected Object |
key
The key |
protected Object |
value
The value |
Constructor Summary | |
---|---|
protected |
AbstractKeyValue(Object key,
Object value)
Constructs a new pair with the specified key and given value. |
Method Summary | |
---|---|
Object |
getKey()
Gets the key from the pair. |
Object |
getValue()
Gets the value from the pair. |
String |
toString()
Gets a debugging String view of the pair. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected Object key
protected Object value
Constructor Detail |
---|
protected AbstractKeyValue(Object key, Object value)
key
- the key for the entry, may be nullvalue
- the value for the entry, may be nullMethod Detail |
---|
public Object getKey()
getKey
in interface KeyValue
public Object getValue()
getValue
in interface KeyValue
public String toString()
toString
in class Object
|
© 2007 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |