|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.exolab.castor.mapping.MapItem
Represents a Mapped Object. This Class allows for more control over the key used in Maps and Hashtables.
Constructor Summary | |
MapItem()
Creates a new empty MapItem. |
|
MapItem(java.lang.Object key,
java.lang.Object value)
Creates a new MapItem with the given key and value. |
Method Summary | |
java.lang.Object |
getKey()
Returns the key Object for this MapItem, or null if no key has been specified. |
java.lang.Object |
getValue()
Returns the value Object for this MapItem, or null if no value has yet been specified. |
void |
setKey(java.lang.Object key)
Sets the key for this MapItem. |
void |
setValue(java.lang.Object value)
Sets the value for this MapItem. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MapItem()
public MapItem(java.lang.Object key, java.lang.Object value)
key
- the key Object for this MapItem.value
- the value for this MapItem.Method Detail |
public java.lang.Object getKey()
public java.lang.Object getValue()
public void setKey(java.lang.Object key)
key
- the key Object for this MapItem.public void setValue(java.lang.Object value)
value
- the value Object for this MapItem.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |