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