org.mmbase.bridge.implementation
Class BasicRelationList
java.lang.Object
java.util.AbstractCollection
java.util.AbstractList
java.util.ArrayList
org.mmbase.bridge.implementation.BasicList
org.mmbase.bridge.implementation.BasicNodeList
org.mmbase.bridge.implementation.BasicRelationList
- All Implemented Interfaces:
- BridgeList, Cloneable, Collection, List, NodeList, RandomAccess, RelationList, Serializable
- public class BasicRelationList
- extends BasicNodeList
- implements RelationList
A list of relations
- Version:
- $Id: BasicRelationList.java,v 1.21 2006/06/13 19:08:31 michiel Exp $
- Author:
- Pierre van Rooden
- See Also:
- Serialized Form
| Methods inherited from class org.mmbase.bridge.implementation.BasicList |
add, add, contains, convertAll, get, getProperty, remove, removeAll, set, setProperty, sort, sort, toArray |
| Methods inherited from class java.util.ArrayList |
addAll, addAll, clear, clone, ensureCapacity, indexOf, isEmpty, lastIndexOf, remove, removeRange, size, toArray, trimToSize |
| 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 |
validate
protected Object validate(Object o)
throws ClassCastException,
IllegalArgumentException
- Overrides:
validate in class BasicNodeList
- 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