/** * {@inheritDoc} */ @Override public void putAll(ValuesStorage other) { if (other instanceof MapValuesStorage) { values.putAll(((MapValuesStorage) other).values); } else { Set<Map.Entry<String, Object>> valuesSet = other.valueSet(); for (Map.Entry<String, Object> entry : valuesSet) { put(entry.getKey(), entry.getValue(), false); } } }
/** * {@inheritDoc} */ @Override public void putAll(ValuesStorage other) { if (other instanceof MapValuesStorage) { values.putAll(((MapValuesStorage) other).values); } else { Set<Map.Entry<String, Object>> valuesSet = other.valueSet(); for (Map.Entry<String, Object> entry : valuesSet) { put(entry.getKey(), entry.getValue(), false); } } }