Package proguard.util

Class MapUtil

java.lang.Object
proguard.util.MapUtil

public class MapUtil extends Object
  • Method Details

    • of

      public static <K, V> Map<K,V> of(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(TreeMap<String,T> map, StringMatcher keyFilter, Consumer<T> consumer)
      Visits every entry in a TreeMap where the key matches the given filter.