Package proguard.util
Class MapUtil
java.lang.Object
proguard.util.MapUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> voidfilterTreeMap(TreeMap<String, T> map, StringMatcher keyFilter, Consumer<T> consumer) Visits every entry in a TreeMap where the key matches the given filter.static <K,V> Map<K, V> Constructs an immutable Map from the given key and value objects.
-
Method Details
-
of
Constructs an immutable Map from the given key and value objects. Equivalent to the Map.of() convenience method available in modern Java. -
filterTreeMap
public static <T> void filterTreeMap(TreeMap<String, T> map, StringMatcher keyFilter, Consumer<T> consumer) Visits every entry in a TreeMap where the key matches the given filter.
-