Package de.intarsys.tools.collection
Class MapTools
java.lang.Object
de.intarsys.tools.collection.MapTools
A tool class for Map extensions.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic Map
defineEntries
(Map map, List declarations) Define new entries inmap
from all declaration strings indeclarations
.static Map
defineEntry
(Map map, String declaration) Define a new entry in themap
fromdefinition
.static Object
static String
-
Field Details
-
SEPARATOR
- See Also:
-
-
Method Details
-
defineEntries
Define new entries inmap
from all declaration strings indeclarations
. For every string in the collection,defineEntry(Map, String)
is called.- Parameters:
map
- The map to receive the new declarationsdeclarations
- A collection of declaration strings.- Returns:
- The parameter
map
-
defineEntry
Define a new entry in themap
fromdefinition
.definition
contains a string in the form "key=value". A entry is defined in the map with "key" as the entries key and the trimmed "value" as its value. If no "=" is available, the value will be an empty string.- Parameters:
map
- The map where we will put the key/value pair.declaration
- The string representation of the key/value pair.- Returns:
- The parameter
map
-
get
-
get
-