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

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

public abstract class AbstractSequentialBridgeList<E extends Comparable<? super E>>
extends AbstractSequentialList<E>
implements BridgeList<E>

As AbstractSequentialList, but implements some extra methods required by BridgeList

Since:
MMBase-1.7
Version:
$Id: AbstractSequentialBridgeList.java 41991 2010-04-20 16:48:55Z michiel $
Author:
Michiel Meeuwissen

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
AbstractSequentialBridgeList()
           
 
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 a, int b)
           
 
Methods inherited from class java.util.AbstractSequentialList
add, addAll, get, iterator, listIterator, remove, set
 
Methods inherited from class java.util.AbstractList
add, clear, equals, hashCode, indexOf, lastIndexOf, listIterator, removeRange
 
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

AbstractSequentialBridgeList

public AbstractSequentialBridgeList()
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 a,
                                      int b)
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