public interface SimpleMap
Modifier and Type | Method and Description |
---|---|
void |
clear()
Remove all associations from the map.
|
boolean |
containsKey(java.lang.Object key)
Answer true iff the given key exists in the map.
|
boolean |
containsValue(java.lang.Object value)
Answer true iff the given value exists in the map.
|
java.lang.Object |
get(java.lang.Object key)
Answer the value associated with the given key.
|
boolean |
isEmpty()
Answer (size() == 0)
|
SimpleIterator |
keys()
Answer a SimpleIterator over the keys in the association.
|
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
Associate the given key and value, replacing any previous association
for the given key.
|
java.lang.Object |
remove(java.lang.Object key)
Remove the association (if any) for the given key.
|
int |
size()
Answer the number of associations in the map.
|
SimpleIterator |
values()
Answer a SimpleIterator over the values in the association.
|
boolean containsKey(java.lang.Object key)
boolean containsValue(java.lang.Object value)
java.lang.Object get(java.lang.Object key)
java.lang.Object put(java.lang.Object key, java.lang.Object value)
java.lang.Object remove(java.lang.Object key)
void clear()
int size()
boolean isEmpty()
SimpleIterator keys()
SimpleIterator values()