Skip to content
This repository was archived by the owner on Oct 16, 2024. It is now read-only.

Commit 27e4b75

Browse files
authored
#428 Fix mistake in docs for Map methods
2 parents 20168fa + d643aaa commit 27e4b75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ A <code>[Map][]</code> property called 'albums' would generate:
359359
| Method | Description |
360360
|:------:| ----------- |
361361
| `putAlbums(int key, String value)` | Associates `key` with `value` in albums. Throws a NullPointerException if either parameter is null. Replaces any existing entry. |
362-
| `putAllAlbums(Map<? extends Integer, ? extends String> map)` | Associates all of `map`'s keys and values in albums. Throws a NullPointerException if the map is null or contains a null key or value. Throws an IllegalArgumentException if any key is already present. |
362+
| `putAllAlbums(Map<? extends Integer, ? extends String> map)` | Associates all of `map`'s keys and values in albums. Throws a NullPointerException if the map is null or contains a null key or value. Replaces any existing mapping for all keys in `map`. |
363363
| `removeAlbums(int key)` | Removes the mapping for `key` from albums. Throws a NullPointerException if the parameter is null. Does nothing if the key is not present. |
364364
| `mutateAlbums(​Consumer<Map<Integer, String>> mutator)` | Invokes the [Consumer] `mutator` with the map of albums. Throws a NullPointerException if `mutator` is null. As `mutator` is a void consumer, any value returned from a lambda will be ignored, so be careful not to call pure functions like [stream()] expecting the returned map to replace the existing map. |
365365
| `clearAlbums()` | Removes all mappings from albums, leaving it empty. |

0 commit comments

Comments
 (0)