List of utility methods to do Map Merge
void | mergeValue(Map merge Value if (obj == null) { return; List<Object> values = (List<Object>) obj.get(key); if (values == null) { values = new ArrayList<Object>(); obj.put(key, values); if ("@list".equals(key) || (value instanceof Map && ((Map<String, Object>) value).containsKey("@list")) || !deepContains(values, value)) { values.add(value); |
void | mergeValueInMap(Map merge Value In Map String[] newValues; String[] oldValues = map.get(name); if (oldValues == null) { newValues = new String[1]; newValues[0] = value; } else { newValues = new String[oldValues.length + 1]; System.arraycopy(oldValues, 0, newValues, 0, oldValues.length); ... |