Package net.infonode.util.collection.map
Class SingleValueMap
java.lang.Object
net.infonode.util.collection.map.SingleValueMap
- All Implemented Interfaces:
ConstCollection,ConstMap
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns an iterator for this map.booleancontainsKey(Object key) Returns true if this map contains the key.booleancontainsValue(Object value) Returns true if this map contains the value.Returns the value associated with the key.booleanisEmpty()Returns true if this collection is empty.
-
Constructor Details
-
SingleValueMap
-
-
Method Details
-
get
Description copied from interface:ConstMapReturns the value associated with the key. -
containsKey
Description copied from interface:ConstMapReturns true if this map contains the key.- Specified by:
containsKeyin interfaceConstMap- Parameters:
key- the key- Returns:
- true if this map contains the key
-
containsValue
Description copied from interface:ConstMapReturns true if this map contains the value.- Specified by:
containsValuein interfaceConstMap- Parameters:
value- the value- Returns:
- true if this map contains the value
-
constIterator
Description copied from interface:ConstMapReturns an iterator for this map.- Specified by:
constIteratorin interfaceConstMap- Returns:
- an iterator for this map
-
isEmpty
public boolean isEmpty()Description copied from interface:ConstCollectionReturns true if this collection is empty.- Specified by:
isEmptyin interfaceConstCollection- Returns:
- true if this collection is empty
-