org.jfree.data
public class DefaultKeyedValue extends Object implements KeyedValue, Cloneable, PublicCloneable, Serializable
Constructor Summary | |
---|---|
DefaultKeyedValue(Comparable key, Number value)
Creates a new (key, value) item.
|
Method Summary | |
---|---|
Object | clone()
Returns a clone. |
boolean | equals(Object obj)
Tests this key-value pair for equality with an arbitrary object.
|
Comparable | getKey()
Returns the key.
|
Number | getValue()
Returns the value.
|
int | hashCode()
Returns a hash code.
|
void | setValue(Number value)
Sets the value.
|
Parameters: key the key (should be immutable). value the value (null
permitted).
Returns: A clone.
Throws: CloneNotSupportedException Not thrown by this class, but subclasses (if any) might.
Parameters: obj the object (null
permitted).
Returns: A boolean.
Returns: The key.
Returns: The value (possibly null
).
Returns: A hash code.
Parameters: value the value (null
permitted).