Package proguard.util
Class MapUtil
- java.lang.Object
-
- proguard.util.MapUtil
-
public class MapUtil extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> void
filterTreeMap(java.util.TreeMap<java.lang.String,T> map, StringMatcher keyFilter, java.util.function.Consumer<T> consumer)
Visits every entry in a TreeMap where the key matches the given filter.static <K,V>
java.util.Map<K,V>of(java.lang.Object... keysValues)
Constructs an immutable Map from the given key and value objects.
-
-
-
Method Detail
-
of
public static <K,V> java.util.Map<K,V> of(java.lang.Object... keysValues)
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(java.util.TreeMap<java.lang.String,T> map, StringMatcher keyFilter, java.util.function.Consumer<T> consumer)
Visits every entry in a TreeMap where the key matches the given filter.
-
-