|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jfree.data.DefaultKeyedValue
public class 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. |
java.lang.String |
toString()
Returns a string representing this instance, primarily useful for debugging. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, 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 KeyedValuepublic java.lang.Number getValue()
getValue in interface Valuenull).public void setValue(java.lang.Number value)
value - the value (null permitted).public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the object (null permitted).
public int hashCode()
hashCode in class java.lang.Object
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in interface org.jfree.util.PublicCloneableclone in class java.lang.Objectjava.lang.CloneNotSupportedException - Not thrown by this class, but
subclasses (if any) might.public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||