org.mmbase.bridge.util
Class AbstractBridgeList<E extends Comparable<? super E>>

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by org.mmbase.bridge.util.AbstractBridgeList<E>
All Implemented Interfaces:
Iterable<E>, Collection<E>, List<E>, BridgeList<E>
Direct Known Subclasses:
AbstractCollectionNodeList

public abstract class AbstractBridgeList<E extends Comparable<? super E>>
extends AbstractList<E>
implements BridgeList<E>

As AbstractList, but implements some extra methods required by BridgeList

Since:
MMBase-1.8
Version:
$Id: AbstractBridgeList.java 41943 2010-04-16 17:18:19Z michiel $
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
 Map<Object,Object> getProperties()
          Returns an (unmodifiable) view on all properties of this list (See BridgeList.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
abstract  BridgeList<E> subList(int f, int t)
           
 
Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, get, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set
 
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, 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 meta data on how the list was created (such as what sort-order was specified)

Specified by:
getProperty in interface BridgeList<E extends Comparable<? super E>>
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 meta data on how the list was created (such as what sort-order was specified)

Specified by:
setProperty in interface BridgeList<E extends Comparable<? super E>>
Parameters:
key - the key of the property
value - the property value

getProperties

public Map<Object,Object> getProperties()
Description copied from interface: BridgeList
Returns an (unmodifiable) view on all properties of this list (See BridgeList.getProperty(java.lang.Object)).

Specified by:
getProperties in interface BridgeList<E extends Comparable<? super E>>

sort

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

Specified by:
sort in interface BridgeList<E extends Comparable<? super E>>

sort

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

Specified by:
sort in interface BridgeList<E extends Comparable<? super E>>
Parameters:
comparator - the comparator defining the sort order

subList

public abstract BridgeList<E> subList(int f,
                                      int t)
Specified by:
subList in interface List<E extends Comparable<? super E>>
Specified by:
subList in interface BridgeList<E extends Comparable<? super E>>
Overrides:
subList in class AbstractList<E extends Comparable<? super E>>


MMBase 2.0-SNAPSHOT - null