org.mmbase.bridge.util
Class AbstractBridgeList

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractList
          extended byorg.mmbase.bridge.util.AbstractBridgeList
All Implemented Interfaces:
BridgeList, Collection, List
Direct Known Subclasses:
CollectionNodeList

public abstract class AbstractBridgeList
extends AbstractList
implements BridgeList

As AbstractList, but implements some extra methods required by BridgeList

Since:
MMBase-1.8
Version:
$Id: AbstractBridgeList.java,v 1.1 2005/12/29 22:08:25 michiel Exp $
Author:
Michiel Meeuwissen

Nested Class Summary
protected  class AbstractBridgeList.BasicIterator
           
 
Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
AbstractBridgeList()
           
 
Method Summary
 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 comparator)
          Sorts this list according to a specified sort order
 
Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, get, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
 
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, size, 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, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray
 

Constructor Detail

AbstractBridgeList

public AbstractBridgeList()
Method Detail

getProperty

public Object getProperty(Object key)
Description copied from interface: BridgeList
Retrieves a property previously set for this list. Use this to store and retrieve metadata on whow teh listw as created (such as what sort-order was specified)

Specified by:
getProperty in interface BridgeList
Parameters:
key - the key of the property
Returns:
the property value

setProperty

public void setProperty(Object key,
                        Object value)
Description copied from interface: BridgeList
Sets a property for this list. Use this to store and retrieve metadata on whow teh listw as created (such as what sort-order was specified)

Specified by:
setProperty in interface BridgeList
Parameters:
key - the key of the property
value - the property value

sort

public void sort()
Description copied from interface: BridgeList
Sorts this list according to a default sort order.

Specified by:
sort in interface BridgeList

sort

public void sort(Comparator comparator)
Description copied from interface: BridgeList
Sorts this list according to a specified sort order

Specified by:
sort in interface BridgeList
Parameters:
comparator - the comparator defining the sort order


MMBase build 1.8.1.20060716