org.jfree.data
Class KeyedObject

java.lang.Object
  |
  +--org.jfree.data.KeyedObject

public class KeyedObject
extends java.lang.Object

A (key, object) pair.

Author:
David Gilbert

Constructor Summary
KeyedObject(java.lang.Comparable key, java.lang.Object object)
          Creates a new (key, object) pair.
 
Method Summary
 java.lang.Comparable getKey()
          Returns the key.
 java.lang.Object getObject()
          Returns the object.
 void setObject(java.lang.Object object)
          Sets the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyedObject

public KeyedObject(java.lang.Comparable key,
                   java.lang.Object object)
Creates a new (key, object) pair.

Parameters:
key - the key.
object - the object.
Method Detail

getKey

public java.lang.Comparable getKey()
Returns the key.

Returns:
the key.

getObject

public java.lang.Object getObject()
Returns the object.

Returns:
the object.

setObject

public void setObject(java.lang.Object object)
Sets the object.

Parameters:
object - the object.