public class MapItem extends Object
Constructor and Description |
---|
MapItem()
Creates a new empty MapItem.
|
MapItem(Object key,
Object value)
Creates a new MapItem with the given key and value.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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.Copyright © 2016. All rights reserved.