public class KeyedObject extends Object implements Cloneable, org.jfree.util.PublicCloneable, Serializable
Constructor and Description |
---|
KeyedObject(Comparable key,
Object object)
Creates a new (key, object) pair.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public KeyedObject(Comparable key, Object object)
key
- the key.object
- the object (null
permitted).public Comparable getKey()
public Object getObject()
null
).public void setObject(Object object)
object
- the object (null
permitted).public Object clone() throws CloneNotSupportedException
PublicCloneable
, otherwise a shallow clone is
made.clone
in interface org.jfree.util.PublicCloneable
clone
in class Object
CloneNotSupportedException
- if there is a problem cloning.Jas4pp 1.5 © Java Analysis Studio for Particle Physics