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
Field Summary |
private java.util.ArrayList |
maps
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
maps
private java.util.ArrayList maps
ConstVectorMap
public ConstVectorMap()
getValue
private java.lang.Object getValue(java.lang.Object key,
int fromIndex,
int toIndex)
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:
ConstMap
- Returns the value associated with the key.
- Specified by:
get
in interface ConstMap
- Parameters:
key
- the key
- Returns:
- the value associated with the key, null if no value is associated with the key
containsKey
public boolean containsKey(java.lang.Object key)
- Description copied from interface:
ConstMap
- Returns true if this map contains the key.
- Specified by:
containsKey
in interface ConstMap
- Parameters:
key
- the key
- Returns:
- true if this map contains the key
containsValue
public boolean containsValue(java.lang.Object value)
- Description copied from interface:
ConstMap
- Returns true if this map contains the value.
- Specified by:
containsValue
in interface ConstMap
- Parameters:
value
- the value
- Returns:
- true if this map contains the value
isEmpty
public boolean isEmpty()
- Description copied from interface:
ConstCollection
- Returns true if this collection is empty.
- Specified by:
isEmpty
in interface ConstCollection
- 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:
ConstMap
- Returns an iterator for this map.
- Specified by:
constIterator
in interface ConstMap
- Returns:
- an iterator for this map