| Constructor and Description |
|---|
KeyValueMap() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear the map
|
boolean |
equals(Object obj) |
String |
get(String key)
Get an item from the map.
|
Object |
getObject(String key) |
int |
hashCode() |
boolean |
isEmpty()
Check whether this map is empty.
|
Iterator<Map.Entry<String,String>> |
iterator() |
void |
put(String key,
Object value)
Put an item in the map
|
void |
putAll(KeyValueMap map)
Put all items from the other map in this map
|
Object |
remove(String key)
Remove an item from the map
|
int |
size()
Get the size of the map.
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic String get(String key)
key - The key of the item.null.public void put(String key, Object value)
key - The key of the item.value - The valuepublic Object remove(String key)
key - The key of the item.null.public void putAll(KeyValueMap map)
map - The other mappublic boolean isEmpty()
true if the map is empty.public int size()
public void clear()
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.