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 <K> PredicateFilter<Map.Entry<K,?>> |
entryKeyPredicateFilter(PredicateFilter<K> predicateFilter) |
static <V> PredicateFilter<Map.Entry<?,V>> |
entryValuePredicateFilter(PredicateFilter<V> predicateFilter) |
static <K1,V1,K2 extends K1,V2 extends V1> |
filter(Map<? extends K2,? extends V2> inputMap,
Map<? super K2,? super V2> outputMap,
PredicateFilter<? super Map.Entry<K1,V1>> predicateFilter) |
static <K1,V1,K2 extends K1,V2 extends V1> |
filter(Map<K2,V2> inputMap,
PredicateFilter<? super Map.Entry<K1,V1>> predicateFilter) |
static <K,V> void |
filterByKeys(Map<? extends K,? extends V> inputMap,
Map<? super K,? super V> outputMap,
PredicateFilter<? super K> keyPredicateFilter) |
static <K,V> Map<K,V> |
filterByKeys(Map<K,V> inputMap,
PredicateFilter<? super K> keyPredicateFilter) |
static <K,V> void |
filterByValues(Map<? extends K,? extends V> inputMap,
Map<? super K,? super V> outputMap,
PredicateFilter<? super V> valuePredicateFilter) |
static <K,V> Map<K,V> |
filterByValues(Map<K,V> inputMap,
PredicateFilter<? super V> keyPredicateFilter) |
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 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 <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)
public static <K> PredicateFilter<Map.Entry<K,?>> entryKeyPredicateFilter(PredicateFilter<K> predicateFilter)
public static <V> PredicateFilter<Map.Entry<?,V>> entryValuePredicateFilter(PredicateFilter<V> predicateFilter)
public static <K1,V1,K2 extends K1,V2 extends V1> void filter(Map<? extends K2,? extends V2> inputMap, Map<? super K2,? super V2> outputMap, PredicateFilter<? super Map.Entry<K1,V1>> predicateFilter)
public static <K1,V1,K2 extends K1,V2 extends V1> Map<K2,V2> filter(Map<K2,V2> inputMap, PredicateFilter<? super Map.Entry<K1,V1>> predicateFilter)
public static <K,V> void filterByKeys(Map<? extends K,? extends V> inputMap, Map<? super K,? super V> outputMap, PredicateFilter<? super K> keyPredicateFilter)
public static <K,V> Map<K,V> filterByKeys(Map<K,V> inputMap, PredicateFilter<? super K> keyPredicateFilter)
public static <K,V> void filterByValues(Map<? extends K,? extends V> inputMap, Map<? super K,? super V> outputMap, PredicateFilter<? super V> valuePredicateFilter)
public static <K,V> Map<K,V> filterByValues(Map<K,V> inputMap, PredicateFilter<? super V> keyPredicateFilter)
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 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 <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)