/** * Removes the entry at the current iterator position (optional operation). * The default implementation throws {@code UnsupportedOperationException}. */ protected void remove() throws UnsupportedOperationException { throw new UnsupportedOperationException(message(false)); } }
/** * Removes all entries in this map. * The default operation throws {@link UnsupportedOperationException}. */ @Override public void clear() throws UnsupportedOperationException { throw new UnsupportedOperationException(message(false)); }
/** * Adds an entry for the given key in this map. * The default operation throws {@link UnsupportedOperationException}. * * @param key the key of the entry to remove. * @param value the value to associate to the given key. * @return the previous value, or {@code null} if none. */ @Override public V put(K key, V value) throws UnsupportedOperationException { throw new UnsupportedOperationException(message(false)); }
/** * Adds the given key in this map. Implementation of this method shall generate a corresponding value. * The default operation throws {@link UnsupportedOperationException}. * * @param key the key to add. * @return {@code true} if this map changed as a result of this operation. */ protected boolean addKey(final K key) throws UnsupportedOperationException { throw new UnsupportedOperationException(message(true)); }
/** * Removes the entry for the given key in this map. * The default operation throws {@link UnsupportedOperationException}. * * @param key the key of the entry to remove. * @return the previous value, or {@code null} if none. */ @Override public V remove(Object key) throws UnsupportedOperationException { throw new UnsupportedOperationException(message(false)); }
/** * Adds the given value in this map. Implementation of this method shall generate a corresponding key. * The default operation throws {@link UnsupportedOperationException}. * * @param value the value to add. * @return {@code true} if this map changed as a result of this operation. */ protected boolean addValue(final V value) throws UnsupportedOperationException { throw new UnsupportedOperationException(message(true)); }
/** * Adds the given key in this map. Implementation of this method shall generate a corresponding value. * The default operation throws {@link UnsupportedOperationException}. * * @param key the key to add. * @return {@code true} if this map changed as a result of this operation. */ protected boolean addKey(final K key) throws UnsupportedOperationException { throw new UnsupportedOperationException(message(true)); }
/** * Adds an entry for the given key in this map. * The default operation throws {@link UnsupportedOperationException}. * * @param key the key of the entry to remove. * @param value the value to associate to the given key. * @return the previous value, or {@code null} if none. */ @Override public V put(K key, V value) throws UnsupportedOperationException { throw new UnsupportedOperationException(message(false)); }
/** * Removes the entry at the current iterator position (optional operation). * The default implementation throws {@code UnsupportedOperationException}. */ protected void remove() throws UnsupportedOperationException { throw new UnsupportedOperationException(message(false)); } }
/** * Removes all entries in this map. * The default operation throws {@link UnsupportedOperationException}. */ @Override public void clear() throws UnsupportedOperationException { throw new UnsupportedOperationException(message(false)); }
/** * Removes the entry for the given key in this map. * The default operation throws {@link UnsupportedOperationException}. * * @param key the key of the entry to remove. * @return the previous value, or {@code null} if none. */ @Override public V remove(Object key) throws UnsupportedOperationException { throw new UnsupportedOperationException(message(false)); }
/** * Adds the given value in this map. Implementation of this method shall generate a corresponding key. * The default operation throws {@link UnsupportedOperationException}. * * @param value the value to add. * @return {@code true} if this map changed as a result of this operation. */ protected boolean addValue(final V value) throws UnsupportedOperationException { throw new UnsupportedOperationException(message(true)); }