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