public class KeyedObject extends Object implements Cloneable, 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 PublicCloneableclone in class ObjectCloneNotSupportedException - if there is a problem cloning.Copyright © 2001–2017 JFree.org. All rights reserved.