Changeset 7395 in josm for trunk/src/org/openstreetmap/josm/tools/SubclassFilteredCollection.java
- Timestamp:
- 2014-08-14T15:33:52+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/SubclassFilteredCollection.java
r6792 r7395 14 14 * @param <T> element type of filtered collection (and subclass of S). The predicate 15 15 * must accept only objects of type T. 16 * @since 3147 16 17 */ 17 18 public class SubclassFilteredCollection<S, T extends S> extends AbstractCollection<T> { … … 63 64 } 64 65 66 /** 67 * Constructs a new {@code SubclassFilteredCollection}. 68 * @param collection The base collection to filter 69 * @param predicate The predicate to use as filter 70 */ 65 71 public SubclassFilteredCollection(Collection<? extends S> collection, Predicate<? super S> predicate) { 66 72 this.collection = collection; … … 90 96 return !iterator().hasNext(); 91 97 } 92 93 98 }
Note:
See TracChangeset
for help on using the changeset viewer.