| java.lang.Object org.jfree.data.DefaultKeyedValue
Method Summary | |
public Object | clone() Returns a clone. | public boolean | equals(Object obj) Tests this key-value pair for equality with an arbitrary object.
Parameters: obj - the object (null permitted). | public Comparable | getKey() Returns the key. | public Number | getValue() Returns the value. | public int | hashCode() Returns a hash code. | public synchronized void | setValue(Number value) Sets the value. | public String | toString() Returns a string representing this instance, primarily useful for
debugging. |
DefaultKeyedValue | public DefaultKeyedValue(Comparable key, Number value)(Code) | | Creates a new (key, value) item.
Parameters: key - the key (should be immutable). Parameters: value - the value (null permitted). |
equals | public boolean equals(Object obj)(Code) | | Tests this key-value pair for equality with an arbitrary object.
Parameters: obj - the object (null permitted). A boolean. |
getValue | public Number getValue()(Code) | | Returns the value.
The value (possibly null ). |
hashCode | public int hashCode()(Code) | | Returns a hash code.
A hash code. |
setValue | public synchronized void setValue(Number value)(Code) | | Sets the value.
Parameters: value - the value (null permitted). |
toString | public String toString()(Code) | | Returns a string representing this instance, primarily useful for
debugging.
A string. |
|
|