source: josm/trunk/src/org/openstreetmap/josm/tools/FilteredCollection.java@ 7845

Last change on this file since 7845 was 7395, checked in by Don-vip, 10 years ago

javadoc update/cleanup

  • Property svn:eol-style set to native
File size: 717 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.tools;
3
4import java.util.Collection;
5
6/**
7 * The same as SubclassFilteredCollection, but does not restrict the type
8 * of the collection to a certain subclass.
9 * @param <T> element type of the underlying collection
10 * @since 3802
11 */
12public class FilteredCollection<T> extends SubclassFilteredCollection<T, T> {
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 */
19 public FilteredCollection(Collection<? extends T> collection, Predicate<? super T> predicate) {
20 super(collection, predicate);
21 }
22}
Note: See TracBrowser for help on using the repository browser.