Jadex 0.96-beta1

jadex.util.collection
Class IndexMap.ListIndexMap

java.lang.Object
  extended by jadex.util.collection.IndexMap
      extended by jadex.util.collection.IndexMap.ListIndexMap
All Implemented Interfaces:
Serializable, Cloneable, Iterable, Collection, List
Enclosing class:
IndexMap

public static class IndexMap.ListIndexMap
extends IndexMap
implements List

Provide access to the index map via list interface.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class jadex.util.collection.IndexMap
IndexMap.ListIndexMap, IndexMap.MapIndexMap
 
Constructor Summary
IndexMap.ListIndexMap()
          Create a new list interface index map.
IndexMap.ListIndexMap(List list, Map map)
          Create a new list interface index map.
 
Method Summary
 Object clone()
          Clone an index map.
 boolean remove(Object o)
          Removes the first occurrence in this list of the specified element.
 
Methods inherited from class jadex.util.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
 
Methods inherited from class java.lang.Object
equals, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, removeAll, retainAll, set, size, subList, toArray, toArray
 

Constructor Detail

IndexMap.ListIndexMap

public IndexMap.ListIndexMap()
Create a new list interface index map.


IndexMap.ListIndexMap

public IndexMap.ListIndexMap(List list,
                             Map map)
Create a new list interface index map.

Parameters:
list - The list.
map - The map.
Method Detail

remove

public boolean remove(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 (o==null ? get(i)==null : o.equals(get(i))) (if such an element exists).

Specified by:
remove in interface Collection
Specified by:
remove in interface List
Parameters:
o - element to be removed from this list, if present.
Returns:
true if this list contained the specified element.
Throws:
ClassCastException - if the type of the specified element is incompatible with this list (optional).
NullPointerException - if the specified element is null and this list does not support null elements (optional).

clone

public Object clone()
Clone an index map.

Overrides:
clone in class IndexMap

Jadex 0.96-beta1

Submit a bug or feature
For further API reference and developer documentation, see the Jadex User Guide and the Jadex Tutorial. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, and working code examples.

Copyright (C) 2002-2007 Lars Braubach, Alexander Pokahr - University of Hamburg. Use is subject to license terms.