|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 | |
java.lang.Object |
clone()
Returns a clone. |
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. |
int |
hashCode()
Returns a hash code. |
void |
setValue(java.lang.Number value)
Sets the value. |
| Methods inherited from class java.lang.Object |
finalize, getClass, 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)
o - the other object.
public int hashCode()
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException - Not thrown by this class, but subclasses (if any) might.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||