org.jfree.data
Class KeyedObject
java.lang.Objectorg.jfree.data.KeyedObject
- Cloneable, PublicCloneable, Serializable
extends java.lang.Object
implements Cloneable, PublicCloneable, Serializable
A (key, object) pair.
KeyedObject(Comparable key, Object object)- Creates a new (key, object) pair.
|
Object | clone()- Returns a clone of this object.
|
boolean | equals(Object obj)- Tests if this object is equal to another.
|
Comparable | getKey()- Returns the key.
|
Object | getObject()- Returns the object.
|
void | setObject(Object object)- Sets the object.
|
KeyedObject
public KeyedObject(Comparable key,
Object object) Creates a new (key, object) pair.
key - the key.object - the object (null permitted).
clone
public Object clone()
throws CloneNotSupportedException Returns a clone of this object. It is assumed that the key is an
immutable object, so it is not deep-cloned. The object is deep-cloned
if it implements PublicCloneable, otherwise a shallow clone is
made.
equals
public boolean equals(Object obj)
Tests if this object is equal to another.
getKey
public Comparable getKey()
Returns the key.
getObject
public Object getObject()
Returns the object.
- The object (possibly
null).
setObject
public void setObject(Object object)
Sets the object.
object - the object (null permitted).