Package | Description |
---|---|
org.openstreetmap.josm.tools |
Provides the classes for various utilities and tools called from all other packages.
|
Modifier and Type | Method and Description |
---|---|
static <T> SubclassFilteredCollection<T,T> |
SubclassFilteredCollection.filter(java.util.Collection<? extends T> collection,
java.util.function.Predicate<T> predicate)
Create a new filtered collection without any constraints on the predicate type.
|
static <S,T extends S> |
Utils.filteredCollection(java.util.Collection<S> collection,
java.lang.Class<T> clazz)
Filter a collection by (sub)class.
|