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)
ConstMap
public boolean containsKey(java.lang.Object key)
ConstMap
containsKey
in interface ConstMap
key
- the keypublic boolean containsValue(java.lang.Object value)
ConstMap
containsValue
in interface ConstMap
value
- the valuepublic ConstMapIterator constIterator()
ConstMap
constIterator
in interface ConstMap
public boolean isEmpty()
ConstCollection
isEmpty
in interface ConstCollection