| |
|
| java.lang.Object net.sf.javaguard.KeyValue
KeyValue | public class KeyValue (Code) | | Stores a key/value pair. Useful as a generic struct.
author: Thorsten Heit |
Method Summary | |
public Object | getKey() Returns the current key. | public Object | getValue() Returns the current object assigned to the key. | public void | setKey(Object aKey) Sets the new key. | public void | setValue(Object theValue) Sets the object that is assigned to the key. |
KeyValue | public KeyValue(Object key, Object value)(Code) | | Initializes a new key/value pair.
Parameters: key - the new key Parameters: value - the object to assign to the key |
getValue | public Object getValue()(Code) | | Returns the current object assigned to the key.
object assigned to the key; may be null See Also: KeyValue.setValue |
setKey | public void setKey(Object aKey)(Code) | | Sets the new key.
Parameters: aKey - an object with the new key; may not be null See Also: KeyValue.getKey |
setValue | public void setValue(Object theValue)(Code) | | Sets the object that is assigned to the key.
Parameters: theValue - the object to assign to the key; may be null See Also: KeyValue.getValue |
|
|
|