public class MapUtil
extends Object
Constructor and Description |
---|
MapUtil() |
Modifier and Type | Method and Description |
---|---|
static <K,V> void |
copy(Map<? extends K,? extends V> master,
Map<? super K,? super V> copy) |
static <K1,V1,K2 extends K1,V2 extends V1> |
filter(Map<? extends K2,? extends V2> inputMap,
Map<? super K2,? super V2> outputMap,
Predicate<? super Map.Entry<K1,V1>> predicate)
Deprecated.
As of Mueller (7.2.x), with no direct replacement
|
static <K1,V1,K2 extends K1,V2 extends V1> |
filter(Map<K2,V2> inputMap,
Predicate<? super Map.Entry<K1,V1>> predicate)
Deprecated.
As of Mueller (7.2.x), with no direct replacement
|
static <K,V> void |
filterByKeys(Map<? extends K,? extends V> inputMap,
Map<? super K,? super V> outputMap,
Predicate<? super K> keyPredicate)
Deprecated.
As of Mueller (7.2.x), with no direct replacement
|
static <K,V> Map<K,V> |
filterByKeys(Map<K,V> inputMap,
Predicate<? super K> keyPredicate)
Deprecated.
As of Mueller (7.2.x), with no direct replacement
|
static <K,V> void |
filterByValues(Map<? extends K,? extends V> inputMap,
Map<? super K,? super V> outputMap,
Predicate<? super V> valuePredicate)
Deprecated.
As of Mueller (7.2.x), with no direct replacement
|
static <K,V> Map<K,V> |
filterByValues(Map<K,V> inputMap,
Predicate<? super V> valuePredicate)
Deprecated.
As of Mueller (7.2.x), with no direct replacement
|
static <T> Map<T,T> |
fromArray(T... array) |
static boolean |
getBoolean(Map<String,?> map,
String key) |
static boolean |
getBoolean(Map<String,?> map,
String key,
boolean defaultValue) |
static double |
getDouble(Map<String,?> map,
String key) |
static double |
getDouble(Map<String,?> map,
String key,
double defaultValue) |
static int |
getInteger(Map<String,?> map,
String key) |
static int |
getInteger(Map<String,?> map,
String key,
int defaultValue) |
static long |
getLong(Map<Long,Long> map,
long key) |
static long |
getLong(Map<Long,Long> map,
long key,
long defaultValue) |
static long |
getLong(Map<String,?> map,
String key) |
static long |
getLong(Map<String,?> map,
String key,
long defaultValue) |
static short |
getShort(Map<String,?> map,
String key) |
static short |
getShort(Map<String,?> map,
String key,
short defaultValue) |
static String |
getString(Map<String,?> map,
String key) |
static String |
getString(Map<String,?> map,
String key,
String defaultValue) |
static <K,V> V |
getWithFallbackKey(Map<K,V> map,
K key,
K fallbackKey) |
static boolean |
isEmpty(Map<?,?> map) |
static boolean |
isNotEmpty(Map<?,?> map) |
static <K,V> void |
merge(Map<? extends K,? extends V> master,
Map<? super K,? super V> copy) |
static <K,V> Dictionary<K,V> |
singletonDictionary(K key,
V value) |
static <T> LinkedHashMap<String,T> |
toLinkedHashMap(String[] params) |
static <T> LinkedHashMap<String,T> |
toLinkedHashMap(String[] params,
String delimiter) |
static String |
toString(Map<?,?> map) |
static String |
toString(Map<?,?> map,
String hideIncludesRegex,
String hideExcludesRegex) |
public static <K,V> void copy(Map<? extends K,? extends V> master, Map<? super K,? super V> copy)
@Deprecated public static <K1,V1,K2 extends K1,V2 extends V1> void filter(Map<? extends K2,? extends V2> inputMap, Map<? super K2,? super V2> outputMap, Predicate<? super Map.Entry<K1,V1>> predicate)
@Deprecated public static <K1,V1,K2 extends K1,V2 extends V1> Map<K2,V2> filter(Map<K2,V2> inputMap, Predicate<? super Map.Entry<K1,V1>> predicate)
@Deprecated public static <K,V> void filterByKeys(Map<? extends K,? extends V> inputMap, Map<? super K,? super V> outputMap, Predicate<? super K> keyPredicate)
@Deprecated public static <K,V> Map<K,V> filterByKeys(Map<K,V> inputMap, Predicate<? super K> keyPredicate)
@Deprecated public static <K,V> void filterByValues(Map<? extends K,? extends V> inputMap, Map<? super K,? super V> outputMap, Predicate<? super V> valuePredicate)
@Deprecated public static <K,V> Map<K,V> filterByValues(Map<K,V> inputMap, Predicate<? super V> valuePredicate)
public static <T> Map<T,T> fromArray(T... array)
public static boolean getBoolean(Map<String,?> map, String key)
public static boolean getBoolean(Map<String,?> map, String key, boolean defaultValue)
public static double getDouble(Map<String,?> map, String key)
public static double getDouble(Map<String,?> map, String key, double defaultValue)
public static int getInteger(Map<String,?> map, String key)
public static int getInteger(Map<String,?> map, String key, int defaultValue)
public static long getLong(Map<Long,Long> map, long key)
public static long getLong(Map<Long,Long> map, long key, long defaultValue)
public static long getLong(Map<String,?> map, String key)
public static long getLong(Map<String,?> map, String key, long defaultValue)
public static short getShort(Map<String,?> map, String key)
public static short getShort(Map<String,?> map, String key, short defaultValue)
public static String getString(Map<String,?> map, String key)
public static String getString(Map<String,?> map, String key, String defaultValue)
public static <K,V> V getWithFallbackKey(Map<K,V> map, K key, K fallbackKey)
public static boolean isEmpty(Map<?,?> map)
public static boolean isNotEmpty(Map<?,?> map)
public static <K,V> void merge(Map<? extends K,? extends V> master, Map<? super K,? super V> copy)
public static <K,V> Dictionary<K,V> singletonDictionary(K key, V value)
public static <T> LinkedHashMap<String,T> toLinkedHashMap(String[] params)
public static <T> LinkedHashMap<String,T> toLinkedHashMap(String[] params, String delimiter)
public static String toString(Map<?,?> map)
public static String toString(Map<?,?> map, String hideIncludesRegex, String hideExcludesRegex)