Example usage for Java org.apache.commons.collections MapUtils fields, constructors, methods, implement or subclass
The text is from its open source code.
Map | EMPTY_MAP An empty unmodifiable map. |
void | debugPrint(final PrintStream out, final Object label, final Map map) Prints the given map with nice line breaks. |
Boolean | getBoolean(Map map, Object key, Boolean defaultValue) Looks up the given key in the given map, converting the result into a boolean, using the default value if the the conversion fails. |
Boolean | getBoolean(final Map map, final Object key) Gets a Boolean from a Map in a null-safe manner. |
boolean | getBooleanValue(final Map map, final Object key) Gets a boolean from a Map in a null-safe manner. |
boolean | getBooleanValue(final Map map, final Object key, boolean defaultValue) Gets a boolean from a Map in a null-safe manner, using the default value if the the conversion fails. |
Double | getDouble(final Map map, final Object key) Gets a Double from a Map in a null-safe manner. |
Double | getDouble(Map map, Object key, Double defaultValue) Looks up the given key in the given map, converting the result into a double, using the default value if the the conversion fails. |
double | getDoubleValue(final Map map, final Object key) Gets a double from a Map in a null-safe manner. |
double | getDoubleValue(final Map map, final Object key, double defaultValue) Gets a double from a Map in a null-safe manner, using the default value if the the conversion fails. |
Integer | getInteger(Map map, Object key, 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. |
Integer | getInteger(final Map map, final Object key) Gets a Integer from a Map in a null-safe manner. |
int | getIntValue(final Map map, final Object key) Gets an int from a Map in a null-safe manner. |
int | getIntValue(final Map map, final Object key, int defaultValue) Gets an int from a Map in a null-safe manner, using the default value if the the conversion fails. |
Long | getLong(Map map, Object key, Long defaultValue) Looks up the given key in the given map, converting the result into a long, using the default value if the the conversion fails. |
Long | getLong(final Map map, final Object key) Gets a Long from a Map in a null-safe manner. |
long | getLongValue(final Map map, final Object key, long defaultValue) Gets a long from a Map in a null-safe manner, using the default value if the the conversion fails. |
long | getLongValue(final Map map, final Object key) Gets a long from a Map in a null-safe manner. |
Map | getMap(Map map, Object key, Map defaultValue) Looks up the given key in the given map, converting the result into a map, using the default value if the the conversion fails. |
Object | getObject(final Map map, final Object key) Gets from a Map in a null-safe manner. |
Object | getObject(Map map, Object key, Object defaultValue) Looks up the given key in the given map, converting null into the given default value. |
String | getString(final Map map, final Object key) Gets a String from a Map in a null-safe manner. |
String | getString(Map map, Object key, String defaultValue) Looks up the given key in the given map, converting the result into a string, using the default value if the the conversion fails. |
Map | invertMap(Map map) Inverts the supplied map returning a new HashMap such that the keys of the input are swapped with the values. |
Map | lazyMap(Map map, Factory factory) Returns a "lazy" map whose values will be created on demand. |
Map | lazyMap(Map map, Transformer transformerFactory) Returns a "lazy" map whose values will be created on demand. |
Map | putAll(Map map, Object[] array) Puts all the keys and values from the specified array into the map. |
void | safeAddToMap(Map map, Object key, Object value) Protects against adding null values to a map. |
Properties | toProperties(final Map map) Gets a new Properties object initialised with the values from a Map. |
Map | transformedMap(Map map, Transformer keyTransformer, Transformer valueTransformer) Returns a transformed map backed by the given map. |
Map | unmodifiableMap(Map map) Returns an unmodifiable map backed by the given map. |
void | verbosePrint(final PrintStream out, final Object label, final Map map) Prints the given map with nice line breaks. |