org.andromda.metafacades.uml
Class FilteredCollection

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractList
          extended byjava.util.ArrayList
              extended byorg.andromda.metafacades.uml.FilteredCollection
All Implemented Interfaces:
Cloneable, Collection, List, org.apache.commons.collections.Predicate, RandomAccess, Serializable

public abstract class FilteredCollection
extends 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(Collection collection)
          Constructor for the FilterCollection object
 
Method Summary
abstract  boolean evaluate(Object object)
           
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, 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, remove, 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, remove, removeAll, retainAll, subList
 

Constructor Detail

FilteredCollection

public FilteredCollection(Collection collection)
Constructor for the FilterCollection object

Parameters:
collection -
Method Detail

evaluate

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


Copyright © 2003-2006 The AndroMDA Team. All Rights Reserved.