001// License: GPL. For details, see LICENSE file.
002package org.openstreetmap.josm.tools;
003
004import java.util.Collection;
005
006/**
007 * The same as SubclassFilteredCollection, but does not restrict the type
008 * of the collection to a certain subclass.
009 * @param <T> element type of the underlying collection
010 * @since 3802
011 */
012public class FilteredCollection<T> extends SubclassFilteredCollection<T, T> {
013
014    /**
015     * Constructs a new {@code FilteredCollection}.
016     * @param collection The base collection to filter
017     * @param predicate The predicate to use as filter
018     */
019    public FilteredCollection(Collection<? extends T> collection, Predicate<? super T> predicate) {
020        super(collection, predicate);
021    }
022}