|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exolab.castor.mapping.MapItem
public class 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(Object key,
Object value)
Creates a new MapItem with the given key and value. |
|
| Method Summary | |
|---|---|
Object |
getKey()
Returns the key Object for this MapItem, or null if no key has been specified. |
Object |
getValue()
Returns the value Object for this MapItem, or null if no value has yet been specified. |
void |
setKey(Object key)
Sets the key for this MapItem. |
void |
setValue(Object value)
Sets the value for this MapItem. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MapItem()
public MapItem(Object key,
Object value)
key - the key Object for this MapItem.value - the value for this MapItem.| Method Detail |
|---|
public Object getKey()
public Object getValue()
public void setKey(Object key)
key - the key Object for this MapItem.public void setValue(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 | |||||||||