public class MapHelper
extends java.lang.Object
Map
manipulations.Modifier and Type | Method and Description |
---|---|
static void |
deepCopyMapBooleans(java.util.Map<java.lang.String,java.lang.Boolean> copy,
java.util.Map<java.lang.String,java.lang.Boolean> original)
Add all the content of the second map to the first one, with a deep copy of the entries.
|
static void |
deepCopyMapFloats(java.util.Map<java.lang.String,java.lang.Float> copy,
java.util.Map<java.lang.String,java.lang.Float> original)
Add all the content of the second map to the first one, with a deep copy of the entries.
|
static void |
deepCopyMapIntegers(java.util.Map<java.lang.String,java.lang.Integer> copy,
java.util.Map<java.lang.String,java.lang.Integer> original)
Add all the content of the second map to the first one, with a deep copy of the entries.
|
static void |
deepCopyMapPatterns(java.util.Map<java.lang.String,java.util.regex.Pattern> copy,
java.util.Map<java.lang.String,java.util.regex.Pattern> original)
Add all the content of the second map to the first one, with a deep copy of the entries.
|
static void |
deepCopyMapStringTables(java.util.Map<java.lang.String,java.lang.String[]> copy,
java.util.Map<java.lang.String,java.lang.String[]> original)
Add all the content of the second map to the first one, with a deep copy of the entries.
|
static boolean |
mapsStringTablesEqual(java.util.Map<java.lang.String,java.lang.String[]> map1,
java.util.Map<java.lang.String,java.lang.String[]> map2)
Indicate if two
Map<String, String[]> are equivalent. |
public static void deepCopyMapBooleans(java.util.Map<java.lang.String,java.lang.Boolean> copy, java.util.Map<java.lang.String,java.lang.Boolean> original)
Map.addAll
method, with a deep copy of the entries objects instead of a simple
copy of their reference.copy
- the destination map to copy the original
map's content.original
- the map to copy content.public static void deepCopyMapIntegers(java.util.Map<java.lang.String,java.lang.Integer> copy, java.util.Map<java.lang.String,java.lang.Integer> original)
Map.addAll
method, with a deep copy of the entries objects instead of a simple
copy of their reference.copy
- the destination map to copy the original
map's content.original
- the map to copy content.public static void deepCopyMapFloats(java.util.Map<java.lang.String,java.lang.Float> copy, java.util.Map<java.lang.String,java.lang.Float> original)
Map.addAll
method, with a deep copy of the entries objects instead of a simple
copy of their reference.copy
- the destination map to copy the original
map's content.original
- the map to copy content.public static void deepCopyMapStringTables(java.util.Map<java.lang.String,java.lang.String[]> copy, java.util.Map<java.lang.String,java.lang.String[]> original)
Map.addAll
method, with a deep copy of the entries objects instead of a simple
copy of their reference.copy
- the destination map to copy the original
map's content.original
- the map to copy content.public static void deepCopyMapPatterns(java.util.Map<java.lang.String,java.util.regex.Pattern> copy, java.util.Map<java.lang.String,java.util.regex.Pattern> original)
Map.addAll
method, with a deep copy of the entries objects instead of a simple
copy of their reference.copy
- the destination map to copy the original
map's content.original
- the map to copy content.public static boolean mapsStringTablesEqual(java.util.Map<java.lang.String,java.lang.String[]> map1, java.util.Map<java.lang.String,java.lang.String[]> map2)
Map<String, String[]>
are equivalent.map1
- the first map.map2
- the second map.true
if the two maps have the same content, regardless of their keys order. Otherwise false
.