org.mmbase.bridge.util
Class CollectionRelationList

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<Relation>
                  extended by org.mmbase.bridge.util.CollectionRelationList
All Implemented Interfaces:
Iterable<Relation>, Collection<Relation>, List<Relation>, BridgeList<Relation>, RelationList

public class CollectionRelationList
extends AbstractCollectionNodeList<Relation>
implements RelationList

A list of Relations, based on a Collection of Nodes

Since:
MMBase-1.8
Version:
$Id: CollectionRelationList.java 41943 2010-04-16 17:18:19Z michiel $
Author:
Michiel Meeuwissen

Nested Class Summary
protected  class CollectionRelationList.BasicRelationIterator
           
 
Nested classes/interfaces inherited from class org.mmbase.bridge.util.AbstractBridgeList
AbstractBridgeList.BasicIterator
 
Field Summary
 
Fields inherited from class org.mmbase.bridge.util.AbstractCollectionNodeList
cloud, nodeManager, wrappedCollection
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
CollectionRelationList(Collection<? extends Node> c, Cloud cloud)
           
CollectionRelationList(Collection<? extends Node> c, NodeManager nodeManager)
           
 
Method Summary
 Relation getRelation(int index)
          Returns the Relation at the indicated postion in the list
 RelationIterator relationIterator()
          Returns an type-specific iterator for this list.
 CollectionRelationList subList(int fromIndex, int toIndex)
           
 CollectionRelationList subRelationList(int fromIndex, int toIndex)
          Returns a sublist of this list.
 
Methods inherited from class org.mmbase.bridge.util.AbstractCollectionNodeList
add, convert, get, getCloud, getCollection, remove, set, size
 
Methods inherited from class org.mmbase.bridge.util.AbstractBridgeList
getProperties, getProperty, setProperty, sort, sort
 
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 org.mmbase.bridge.BridgeList
getProperties, getProperty, setProperty, sort, sort
 
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
 

Constructor Detail

CollectionRelationList

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

CollectionRelationList

public CollectionRelationList(Collection<? extends Node> c,
                              Cloud cloud)
Method Detail

getRelation

public Relation getRelation(int index)
Description copied from interface: RelationList
Returns the Relation at the indicated postion in the list

Specified by:
getRelation in interface RelationList
Parameters:
index - the position of the Relation to retrieve
Returns:
Relation at the indicated postion

subList

public CollectionRelationList subList(int fromIndex,
                                      int toIndex)
Specified by:
subList in interface List<Relation>
Specified by:
subList in interface BridgeList<Relation>
Specified by:
subList in class AbstractBridgeList<Relation>

subRelationList

public CollectionRelationList subRelationList(int fromIndex,
                                              int toIndex)
Description copied from interface: RelationList
Returns a sublist of this list.

Specified by:
subRelationList in interface RelationList
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

relationIterator

public RelationIterator relationIterator()
Description copied from interface: RelationList
Returns an type-specific iterator for this list.

Specified by:
relationIterator in interface RelationList
Returns:
Relation iterator


MMBase 2.0-SNAPSHOT - null