org.mmbase.bridge.util
Class AbstractCollectionNodeList<E extends Node>

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by org.mmbase.bridge.util.AbstractBridgeList<E>
              extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class org.mmbase.bridge.util.AbstractBridgeList
AbstractBridgeList.BasicIterator
 
Field Summary
protected  Cloud cloud
           
protected  NodeManager nodeManager
           
protected  List wrappedCollection
           
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
AbstractCollectionNodeList(Collection c)
           
AbstractCollectionNodeList(Collection<? extends Node> c, Cloud cloud)
           
AbstractCollectionNodeList(Collection<? extends Node> c, NodeManager nodeManager)
           
 
Method Summary
 void add(int index, E o)
           
protected  Object convert(Object o, int index)
           
 E get(int index)
           
protected  Cloud getCloud()
           
 Collection<Node> getCollection()
           
 E remove(int index)
           
 E set(int index, E o)
           
 int size()
           
 
Methods inherited from class org.mmbase.bridge.util.AbstractBridgeList
getProperties, getProperty, setProperty, sort, sort, subList
 
Methods inherited from class java.util.AbstractList
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange
 
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
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
 

Field Detail

cloud

protected Cloud cloud

nodeManager

protected final NodeManager nodeManager

wrappedCollection

protected final List wrappedCollection
Constructor Detail

AbstractCollectionNodeList

public AbstractCollectionNodeList(Collection<? extends Node> c,
                                  NodeManager nodeManager)

AbstractCollectionNodeList

public AbstractCollectionNodeList(Collection<? extends Node> c,
                                  Cloud cloud)

AbstractCollectionNodeList

public AbstractCollectionNodeList(Collection c)
Method Detail

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