程序包 proguard.util

类 MapUtil


  • public class MapUtil
    extends java.lang.Object
    • 方法概要

      所有方法 静态方法 具体方法 
      修饰符和类型 方法 说明
      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.
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 方法详细资料

      • 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.