Example usage for Java org.apache.commons.collections4 MapUtils fields, constructors, methods, implement or subclass
The text is from its open source code.
SortedMap | EMPTY_SORTED_MAP An empty unmodifiable sorted map. |
Map | emptyIfNull(final Map Returns an immutable empty map if the argument is null , or the argument itself otherwise. |
Boolean | getBoolean(final Map super K, ?> map, final K key) Gets a Boolean from a Map in a null-safe manner. |
Double | getDouble(final Map super K, ?> map, final K key) Gets a Double from a Map in a null-safe manner. |
Integer | getInteger(final Map super K, ?> map, final K key, final Integer defaultValue) Looks up the given key in the given map, converting the result into an integer, using the default value if the the conversion fails. |
int | getIntValue(final Map super K, ?> map, final K key, final int defaultValue) Gets an int from a Map in a null-safe manner, using the default value if the the conversion fails. |
V | getObject(final Map super K, V> map, final K key) Gets from a Map in a null-safe manner. |
String | getString(final Map super K, ?> map, final K key) Gets a String from a Map in a null-safe manner. |
Map | invertMap(final Map Inverts the supplied map returning a new HashMap such that the keys of the input are swapped with the values. |
boolean | isEmpty(final Map, ?> map) Null-safe check if the specified map is empty. |
boolean | isNotEmpty(final Map, ?> map) Null-safe check if the specified map is not empty. |
Properties | toProperties(final Map Gets a new Properties object initialised with the values from a Map. |
Map | unmodifiableMap(final Map extends K, ? extends V> map) Returns an unmodifiable map backed by the given map. |