public class MiscUtils extends Object
| Constructor and Description |
|---|
MiscUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <K,V> Map<K,V> |
filter(Map<K,V> map,
Function<V,Boolean> predicate)
Filters a given map leaving only elements fulfilling a predicate.
|
public static <K,V> Map<K,V> filter(Map<K,V> map, Function<V,Boolean> predicate)
K - key typeV - value typemap - input map to be filteredpredicate - predicate for element comparisonCopyright © 2008–2022 MojoHaus. All rights reserved.