|
JFreeChart 1.0.14-redhat-2 | |||||||||
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(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. |
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(Comparable key, Number value)
key
- the key (should be immutable, null
not
permitted).value
- the value (null
permitted).Method Detail |
---|
public Comparable getKey()
getKey
in interface KeyedValue
null
).public Number getValue()
getValue
in interface Value
null
).public void setValue(Number value)
value
- the value (null
permitted).public boolean equals(Object obj)
equals
in class Object
obj
- the object (null
permitted).
public int hashCode()
hashCode
in class Object
public Object clone() throws CloneNotSupportedException
clone
in interface org.jfree.util.PublicCloneable
clone
in class Object
CloneNotSupportedException
- Not thrown by this class, but
subclasses (if any) might.public String toString()
toString
in class Object
|
JFreeChart 1.0.14-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |