org.mmbase.bridge
Interface BridgeList<E>

Package class diagram package BridgeList
Type Parameters:
E - Type of elements
All Superinterfaces:
Collection<E>, Iterable<E>, List<E>
All Known Subinterfaces:
FieldList, ModuleList, NodeList, NodeManagerList, RelationList, RelationManagerList, StringList
All Known Implementing Classes:
AbstractBridgeList, AbstractCollectionNodeList, AbstractNodeList, AbstractSequentialBridgeList, BasicFieldList, BasicList, BasicModuleList, BasicNodeManagerList, BasicRelationList, BasicRelationManagerList, BasicStringList, BridgeCaster.NodeListWrapper, BridgeCollections.EmptyBridgeList, BridgeCollections.EmptyModuleList, BridgeCollections.EmptyNodeList, BridgeCollections.EmptyNodeManagerList, BridgeCollections.EmptyRelationList, BridgeCollections.EmptyRelationManagerList, BridgeCollections.EmptyStringList, BridgeCollections.UnmodifiableBridgeList, BridgeCollections.UnmodifiableNodeList, BridgeCollections.UnmodifiableNodeManagerList, BridgeCollections.UnmodifiableRelationList, BridgeCollections.UnmodifiableRelationManagerList, BridgeCollections.UnmodifiableStringList, CollectionNodeList, CollectionRelationList, GrowingTreeList, SimpleNodeList, TreeList

public interface BridgeList<E>
extends List<E>

Since:
MMBase-1.6
Version:
$Id: BridgeList.java 41186 2010-02-26 17:54:31Z michiel $
Author:
Pierre van Rooden

Method Summary
 Map<Object,Object> getProperties()
          Returns an (unmodifiable) view on all properties of this list (See getProperty(java.lang.Object)).
 Object getProperty(Object key)
          Retrieves a property previously set for this list.
 void setProperty(Object key, Object value)
          Sets a property for this list.
 void sort()
          Sorts this list according to a default sort order.
 void sort(Comparator<? super E> comparator)
          Sorts this list according to a specified sort order
 BridgeList<E> subList(int fromIndex, int toIndex)
           
 
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
 

Method Detail

getProperty

Object getProperty(Object key)
Retrieves a property previously set for this list. Use this to store and retrieve meta data on how the list was created (such as what sort-order was specified)

Parameters:
key - the key of the property
Returns:
the property value

setProperty

void setProperty(Object key,
                 Object value)
Sets a property for this list. Use this to store and retrieve meta data on how the list was created (such as what sort-order was specified)

Parameters:
key - the key of the property
value - the property value

getProperties

Map<Object,Object> getProperties()
Returns an (unmodifiable) view on all properties of this list (See getProperty(java.lang.Object)).

Since:
MMBase-1.9.1

sort

void sort()
Sorts this list according to a default sort order.


sort

void sort(Comparator<? super E> comparator)
Sorts this list according to a specified sort order

Parameters:
comparator - the comparator defining the sort order

subList

BridgeList<E> subList(int fromIndex,
                      int toIndex)
Specified by:
subList in interface List<E>


MMBase2 Bridge 2.0-SNAPSHOT - 2013-11-29T11:05