Package com.liferay.portal.kernel.util
Class MapUtil
Object
com.liferay.portal.kernel.util.MapUtil
- Author:
- Brian Wing Shun Chan, Raymond Augé
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <K,
V> void 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
static double
static int
getInteger
(Map<String, ?> map, String key) static int
getInteger
(Map<String, ?> map, String key, int defaultValue) static long
static long
static long
static long
static short
static short
static String
static String
static <K,
V> V getWithFallbackKey
(Map<K, V> map, K key, K fallbackKey) static boolean
static boolean
isNotEmpty
(Map<?, ?> map) static <K,
V> void isNotEmptyForEach
(Map<? extends K, ? extends V> map, BiConsumer<? super K, ? super V> biConsumer) static <K,
V> void 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) toPartitionMap
(List<V> list, Function<V, K> keyExtractor) static String
static String
-
Constructor Details
-
MapUtil
public MapUtil()
-
-
Method Details
-
copy
-
fromArray
-
getBoolean
-
getBoolean
-
getDouble
-
getDouble
-
getInteger
-
getInteger
-
getLong
-
getLong
-
getLong
-
getLong
-
getShort
-
getShort
-
getString
-
getString
-
getWithFallbackKey
-
isEmpty
-
isNotEmpty
-
isNotEmptyForEach
public static <K,V> void isNotEmptyForEach(Map<? extends K, ? extends V> map, BiConsumer<? super K, ? super V> biConsumer) -
merge
-
singletonDictionary
-
toLinkedHashMap
-
toLinkedHashMap
-
toPartitionMap
-
toString
-
toString
-