|
||||||||||
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) item. |
Method Summary | |
java.lang.Object |
clone()
Returns a clone. |
boolean |
equals(java.lang.Object obj)
Tests this key-value pair for equality with an arbitrary object. |
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 (should be immutable).value
- the value (null
permitted).Method Detail |
public java.lang.Comparable getKey()
getKey
in interface KeyedValue
public java.lang.Number getValue()
getValue
in interface Value
null
).public void setValue(java.lang.Number value)
value
- the value (null
permitted).public boolean equals(java.lang.Object obj)
obj
- the object (null
permitted).
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 |