Changeset 7395 in josm for trunk/src/org/openstreetmap/josm/tools
- Timestamp:
- 2014-08-14T15:33:52+02:00 (11 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/FilteredCollection.java
r3802 r7395 7 7 * The same as SubclassFilteredCollection, but does not restrict the type 8 8 * of the collection to a certain subclass. 9 * @param <T> element type of the underlying collection 10 * @since 3802 9 11 */ 10 12 public class FilteredCollection<T> extends SubclassFilteredCollection<T, T> { 11 13 14 /** 15 * Constructs a new {@code FilteredCollection}. 16 * @param collection The base collection to filter 17 * @param predicate The predicate to use as filter 18 */ 12 19 public FilteredCollection(Collection<? extends T> collection, Predicate<? super T> predicate) { 13 20 super(collection, predicate); 14 21 } 15 16 22 } -
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.