Package jadex.commons.collection
Class IndexMap.ListIndexMap<K,V>
- java.lang.Object
-
- jadex.commons.collection.IndexMap<K,V>
-
- jadex.commons.collection.IndexMap.ListIndexMap<K,V>
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.lang.Iterable<V>
,java.util.Collection<V>
,java.util.List<V>
public static class IndexMap.ListIndexMap<K,V> extends IndexMap<K,V> implements java.util.List<V>
Provide access to the index map via list interface.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class jadex.commons.collection.IndexMap
IndexMap.ListIndexMap<K,V>, IndexMap.MapIndexMap<K,V>
-
-
Constructor Summary
Constructors Constructor Description ListIndexMap()
Create a new list interface index map.ListIndexMap(java.util.List<K> list, java.util.Map<K,V> map)
Create a new list interface index map.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
clone()
Clone an index map.boolean
remove(java.lang.Object o)
Removes the first occurrence in this list of the specified element.-
Methods inherited from class jadex.commons.collection.IndexMap
add, add, add, add, addAll, addAll, clear, contains, containsAll, containsKey, containsValue, entrySet, equals, get, get, getAsList, getAsMap, getKey, getKeys, getKeys, getObjects, getObjects, hashCode, indexOf, isEmpty, iterator, keySet, lastIndexOf, listIterator, listIterator, put, putAll, remove, removeAll, removeKey, removeValue, replace, retainAll, set, size, subList, toArray, toArray, toString, values
-
-
-
-
Method Detail
-
remove
public boolean remove(java.lang.Object o)
Removes the first occurrence in this list of the specified element. If this list does not contain the element, it is unchanged. More formally, removes the element with the lowest index i such that- Specified by:
remove
in interfacejava.util.Collection<K>
- Specified by:
remove
in interfacejava.util.List<K>
- Parameters:
o
- element to be removed from this list, if present.- Returns:
-
- Throws:
java.lang.ClassCastException
- if the type of the specified element is incompatible with this list (optional).java.lang.NullPointerException
- if the specified element is null and this list does not support null elements (optional).
-
-