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

Last change on this file since 10734 was 10691, checked in by Don-vip, 8 years ago

see #11390, fix #12890 - finish transition to Java 8 predicates/functions

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