org.andromda.metafacades.uml
Class FilteredCollection

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList
              extended by org.andromda.metafacades.uml.FilteredCollection
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable, java.util.Collection, java.util.List, java.util.RandomAccess, org.apache.commons.collections.Predicate

public abstract class FilteredCollection
extends java.util.ArrayList
implements org.apache.commons.collections.Predicate

Filters a collection of objects so that the collection contains only those objects that pass the evaluate test.

It is useful for filtering the results of a query.

Author:
Anthony Mowers, Chad Brandon
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
FilteredCollection(java.util.Collection collection)
          Constructor for the FilterCollection object
 
Method Summary
abstract  boolean evaluate(java.lang.Object object)
           
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList
 

Constructor Detail

FilteredCollection

public FilteredCollection(java.util.Collection collection)
Constructor for the FilterCollection object

Parameters:
collection -
Method Detail

evaluate

public abstract boolean evaluate(java.lang.Object object)
Specified by:
evaluate in interface org.apache.commons.collections.Predicate
See Also:
Predicate.evaluate(java.lang.Object)


Copyright © 2003-2009 AndroMDA.org. All Rights Reserved.