|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.jfree.data.DefaultKeyedValue
A (key, value) pair.
This class provides a default implementation of the KeyedValue interface.
| Constructor Summary | |
DefaultKeyedValue(java.lang.Comparable key,
java.lang.Number value)
Creates a new (key, value) pair. |
|
| Method Summary | |
boolean |
equals(java.lang.Object o)
Tests if this object is equal to another. |
java.lang.Comparable |
getKey()
Returns the key. |
java.lang.Number |
getValue()
Returns the value. |
void |
setValue(java.lang.Number value)
Sets the value. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DefaultKeyedValue(java.lang.Comparable key,
java.lang.Number value)
key - the key.value - the value (null permitted).| Method Detail |
public java.lang.Comparable getKey()
getKey in interface KeyedValuepublic java.lang.Number getValue()
getValue in interface Valuepublic void setValue(java.lang.Number value)
value - the value.public boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - the other object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||