Class SubclassFilteredCollection<S,T extends S>

java.lang.Object
java.util.AbstractCollection<T>
org.openstreetmap.josm.tools.SubclassFilteredCollection<S,T>
Type Parameters:
S - element type of the underlying collection
T - element type of filtered collection (and subclass of S). The predicate must accept only objects of type T.
All Implemented Interfaces:
Iterable<T>, Collection<T>

public class SubclassFilteredCollection<S,T extends S> extends AbstractCollection<T>
Filtered view of a collection. (read-only collection, but elements can be changed, of course) Lets you iterate through those elements of a given collection that satisfy a certain condition (imposed by a predicate).

The behaviour of this class is undefined if the underlying collection is changed.

Since:
3147