org.openmdx.base.collection
Class AbstractFilteringList

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.AbstractSequentialList
              extended by org.openmdx.base.collection.AbstractFilteringList
All Implemented Interfaces:
Iterable, Collection, List

public abstract class AbstractFilteringList
extends AbstractSequentialList

Author:
hburger To change the template for this generated type comment go to Window>Preferences>Java>Code Generation>Code and Comments

Field Summary
protected  List list
           
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
protected AbstractFilteringList(List list)
           
 
Method Summary
protected abstract  boolean accept(Object candidate)
          Tests whether candidate is a member of the collection.
 ListIterator listIterator(int index)
           
protected  void removeInternal(Object object, ListIterator iterator)
          Interceptable remove
 int size()
           
 
Methods inherited from class java.util.AbstractSequentialList
add, addAll, get, iterator, remove, set
 
Methods inherited from class java.util.AbstractList
add, clear, equals, hashCode, indexOf, lastIndexOf, listIterator, removeRange, subList
 
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, 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
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
 

Field Detail

list

protected final List list
Constructor Detail

AbstractFilteringList

protected AbstractFilteringList(List list)
Method Detail

accept

protected abstract boolean accept(Object candidate)
Tests whether candidate is a member of the collection.

Returns:
true if the candidate is a member of the collection

removeInternal

protected void removeInternal(Object object,
                              ListIterator iterator)
Interceptable remove

Parameters:
object -
iterator -

listIterator

public ListIterator listIterator(int index)
Specified by:
listIterator in interface List
Specified by:
listIterator in class AbstractSequentialList

size

public int size()
Specified by:
size in interface Collection
Specified by:
size in interface List
Specified by:
size in class AbstractCollection


This software is published under the BSD license. Copyright © 2003-2007, OMEX AG, Switzerland, All rights reserved. Use is subject to license terms.