1 package org.andromda.metafacades.uml;
2
3 import java.util.ArrayList;
4 import java.util.Collection;
5 import org.apache.commons.collections.CollectionUtils;
6 import org.apache.commons.collections.Predicate;
7
8
9
10
11
12
13
14
15
16
17
18 public abstract class FilteredCollection<T>
19 extends ArrayList<T>
20 implements Predicate
21 {
22
23
24
25
26
27 public FilteredCollection(Collection<T> collection)
28 {
29 this.addAll(collection);
30 CollectionUtils.filter(
31 this,
32 this);
33 }
34
35
36
37
38 public abstract boolean evaluate(Object object);
39 }