org.andromda.metafacades.uml
Class FilteredCollection
java.lang.Object
java.util.AbstractCollection
java.util.AbstractList
java.util.ArrayList
org.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
| 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 |
FilteredCollection
public FilteredCollection(Collection collection)
- Constructor for the FilterCollection object
- Parameters:
collection -
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.