/** * Copy the contents of a Map to the decorated {@link DynaBean}. * * @param map The Map of values to copy. * @throws UnsupportedOperationException if * <code>isReadOnly()</code> is true. */ public void putAll(final Map<? extends K, ? extends Object> map) { if (isReadOnly()) { throw new UnsupportedOperationException("Map is read only"); } for (final Map.Entry<? extends K, ?> e : map.entrySet()) { put(e.getKey(), e.getValue()); } }
/** * Copy the contents of a Map to the decorated {@link DynaBean}. * * @param map The Map of values to copy. * @throws UnsupportedOperationException if * <code>isReadOnly()</code> is true. */ public void putAll(final Map<? extends K, ? extends Object> map) { if (isReadOnly()) { throw new UnsupportedOperationException("Map is read only"); } for (final Map.Entry<? extends K, ?> e : map.entrySet()) { put(e.getKey(), e.getValue()); } }
/** * Copy the contents of a Map to the decorated {@link DynaBean}. * * @param map The Map of values to copy. * @throws UnsupportedOperationException if * <code>isReadOnly()</code> is true. */ public void putAll(final Map<? extends K, ? extends Object> map) { if (isReadOnly()) { throw new UnsupportedOperationException("Map is read only"); } for (final Map.Entry<? extends K, ?> e : map.entrySet()) { put(e.getKey(), e.getValue()); } }