org.mmbase.bridge.util
Class CollectionRelationList
java.lang.Object
java.util.AbstractCollection
java.util.AbstractList
org.mmbase.bridge.util.AbstractBridgeList
org.mmbase.bridge.util.CollectionNodeList
org.mmbase.bridge.util.CollectionRelationList
- All Implemented Interfaces:
- BridgeList, Collection, List, NodeList, RelationList
- public class CollectionRelationList
- extends CollectionNodeList
- implements RelationList
A list of nodes, based on a Collection of Nodes
- Since:
- MMBase-1.8
- Version:
- $Id: CollectionRelationList.java,v 1.1 2005/12/29 19:08:01 michiel Exp $
- Author:
- Michiel Meeuwissen
| Methods inherited from class java.util.AbstractList |
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, subList |
| 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, subList, toArray, toArray |
CollectionRelationList
public CollectionRelationList(Collection c,
NodeManager nodeManager)
CollectionRelationList
public CollectionRelationList(Collection c,
Cloud cloud)
validate
protected Object validate(Object o)
throws ClassCastException,
IllegalArgumentException
- Throws:
ClassCastException
IllegalArgumentException
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
subRelationList
public RelationList 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 build 1.8.1.20060716