org.mmbase.bridge.util
Class AbstractCollectionNodeList<E extends Node>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
org.mmbase.bridge.util.AbstractBridgeList<E>
org.mmbase.bridge.util.AbstractCollectionNodeList<E>
- All Implemented Interfaces:
- Iterable<E>, Collection<E>, List<E>, BridgeList<E>
- Direct Known Subclasses:
- CollectionNodeList, CollectionRelationList
public abstract class AbstractCollectionNodeList<E extends Node>
- extends AbstractBridgeList<E>
An AbstractCollectionNodeList implements a BridgeList of Nodes, based on a collection of objects of perhaps other type, which are
implicitely convert(java.lang.Object, int)ed when necessary.
- Since:
- MMBase-1.8
- Version:
- $Id: AbstractCollectionNodeList.java 41186 2010-02-26 17:54:31Z michiel $
- Author:
- Nico Klasens
| Methods inherited from class java.util.AbstractList |
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange |
| Methods inherited from interface java.util.List |
add, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, removeAll, retainAll, toArray, toArray |
cloud
protected Cloud cloud
nodeManager
protected final NodeManager nodeManager
wrappedCollection
protected final List wrappedCollection
AbstractCollectionNodeList
public AbstractCollectionNodeList(Collection<? extends Node> c,
NodeManager nodeManager)
AbstractCollectionNodeList
public AbstractCollectionNodeList(Collection<? extends Node> c,
Cloud cloud)
AbstractCollectionNodeList
public AbstractCollectionNodeList(Collection c)
size
public int size()
- Specified by:
size in interface Collection<E extends Node>- Specified by:
size in interface List<E extends Node>- Specified by:
size in class AbstractCollection<E extends Node>
get
public E get(int index)
- Specified by:
get in interface List<E extends Node>- Specified by:
get in class AbstractList<E extends Node>
set
public E set(int index,
E o)
- Specified by:
set in interface List<E extends Node>- Overrides:
set in class AbstractList<E extends Node>
add
public void add(int index,
E o)
- Specified by:
add in interface List<E extends Node>- Overrides:
add in class AbstractList<E extends Node>
remove
public E remove(int index)
- Specified by:
remove in interface List<E extends Node>- Overrides:
remove in class AbstractList<E extends Node>
getCollection
public Collection<Node> getCollection()
convert
protected Object convert(Object o,
int index)
getCloud
protected Cloud getCloud()
MMBase 2.0-SNAPSHOT - null