Package net.infonode.util.collection.map
Class ConstVectorMap
- java.lang.Object
-
- net.infonode.util.collection.map.ConstVectorMap
-
- All Implemented Interfaces:
ConstCollection,ConstMap
public class ConstVectorMap extends java.lang.Object implements ConstMap
-
-
Constructor Summary
Constructors Constructor Description ConstVectorMap()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddMap(int index, ConstMap map)voidaddMap(ConstMap map)ConstMapIteratorconstIterator()Returns an iterator for this map.booleancontainsKey(java.lang.Object key)Returns true if this map contains the key.booleancontainsValue(java.lang.Object value)Returns true if this map contains the value.java.lang.Objectget(java.lang.Object key)Returns the value associated with the key.ConstMapgetMap(int index)intgetMapCount()intgetMapIndex(ConstMap map)booleanisEmpty()Returns true if this collection is empty.ConstMapremoveMap(int index)
-
-
-
Method Detail
-
addMap
public void addMap(ConstMap map)
-
addMap
public void addMap(int index, ConstMap map)
-
getMapCount
public int getMapCount()
-
removeMap
public ConstMap removeMap(int index)
-
get
public java.lang.Object get(java.lang.Object key)
Description copied from interface:ConstMapReturns the value associated with the key.
-
containsKey
public boolean containsKey(java.lang.Object key)
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
public boolean containsValue(java.lang.Object value)
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
-
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
-
getMap
public ConstMap getMap(int index)
-
getMapIndex
public int getMapIndex(ConstMap map)
-
constIterator
public ConstMapIterator constIterator()
Description copied from interface:ConstMapReturns an iterator for this map.- Specified by:
constIteratorin interfaceConstMap- Returns:
- an iterator for this map
-
-