org.mmbase.bridge.util
Class CollectionNodeList
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
org.mmbase.bridge.util.AbstractBridgeList<E>
org.mmbase.bridge.util.AbstractCollectionNodeList<Node>
org.mmbase.bridge.util.CollectionNodeList
- All Implemented Interfaces:
- Iterable<Node>, Collection<Node>, List<Node>, BridgeList<Node>, NodeList
- Direct Known Subclasses:
- BridgeCaster.NodeListWrapper
public class CollectionNodeList
- extends AbstractCollectionNodeList<Node>
- implements NodeList
A (fixed-size) list of nodes, based on a Collection of Nodes. If the collection is a List it
will mirror its' changes. Otherwise, no, because the complete collection is inserted in its own
one.
- Since:
- MMBase-1.8
- Version:
- $Id: CollectionNodeList.java 41943 2010-04-16 17:18:19Z michiel $
- Author:
- Michiel Meeuwissen
| 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, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, toArray, toArray |
CollectionNodeList
public CollectionNodeList(Collection c,
NodeManager nodeManager)
CollectionNodeList
public CollectionNodeList(Collection c,
Cloud cloud)
CollectionNodeList
public CollectionNodeList(Collection c)
getNode
public Node getNode(int index)
- Description copied from interface:
NodeList
- Returns the Node at the indicated postion in the list
- Specified by:
getNode in interface NodeList
- Parameters:
index - the position of the Node to retrieve
- Returns:
- Node at the indicated postion
subNodeList
public NodeList subNodeList(int fromIndex,
int toIndex)
- Description copied from interface:
NodeList
- Returns a sublist of this list.
- Specified by:
subNodeList in interface NodeList
- Parameters:
fromIndex - the position in the current list where the sublist starts (inclusive)toIndex - the position in the current list where the sublist ends (exclusive)
- Returns:
- sublist of this list
subList
public CollectionNodeList subList(int fromIndex,
int toIndex)
- Specified by:
subList in interface List<Node>- Specified by:
subList in interface BridgeList<Node>- Specified by:
subList in class AbstractBridgeList<Node>
nodeIterator
public NodeIterator nodeIterator()
- Description copied from interface:
NodeList
- Returns an type-specific iterator for this list.
- Specified by:
nodeIterator in interface NodeList
- Returns:
- Node iterator
MMBase 2.0-SNAPSHOT - null