public class SingleValueMap extends java.lang.Object implements ConstMap
| Constructor and Description |
|---|
SingleValueMap(java.lang.Object key,
java.lang.Object value) |
| Modifier and Type | Method and Description |
|---|---|
ConstMapIterator |
constIterator()
Returns an iterator for this map.
|
boolean |
containsKey(java.lang.Object key)
Returns true if this map contains the key.
|
boolean |
containsValue(java.lang.Object value)
Returns true if this map contains the value.
|
java.lang.Object |
get(java.lang.Object key)
Returns the value associated with the key.
|
boolean |
isEmpty()
Returns true if this collection is empty.
|
public SingleValueMap(java.lang.Object key,
java.lang.Object value)
public java.lang.Object get(java.lang.Object key)
ConstMappublic boolean containsKey(java.lang.Object key)
ConstMapcontainsKey in interface ConstMapkey - the keypublic boolean containsValue(java.lang.Object value)
ConstMapcontainsValue in interface ConstMapvalue - the valuepublic ConstMapIterator constIterator()
ConstMapconstIterator in interface ConstMappublic boolean isEmpty()
ConstCollectionisEmpty in interface ConstCollection