You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 16, 2024. It is now read-only.
Copy file name to clipboardexpand all lines: README.md
+7-5
Original file line number
Diff line number
Diff line change
@@ -333,8 +333,8 @@ property called 'descendants' would generate:
333
333
|:------:| ----------- |
334
334
|`addDescendants(String element)`| Appends `element` to the collection of descendants. If descendants is a set and the element is already present, it is ignored. Throws a NullPointerException if element is null. |
335
335
|`addDescendants(String... elements)`| Appends all `elements` to the collection of descendants. If descendants is a set, any elements already present are ignored. Throws a NullPointerException if elements, or any of the values it holds, is null. |
336
-
|`addAllDescendants(Iterable<String> elements)`| Appends all `elements` to the collection of descendants. If descendants is a set, any elements already present are ignored. Throws a NullPointerException if elements, or any of the values it holds, is null. |
337
-
|`mutateDescendants(Consumer<...<String>> mutator)`|*Java 8+* Invokes the [Consumer]`mutator` with the collection of descendants. (The mutator takes a list, set or map as appropriate.) 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 collection to replace the existing collection. |
336
+
|`addAllDescendants(Iterable<String> elements)`| Appends all `elements` to the collection of descendants. If descendants is a set, any elements already present are ignored. Throws a NullPointerException if elements, or any of the values it holds, is null.<br> *Java 8+* Overloaded to also accept a [Stream] or [Spliterator].|
337
+
|`mutateDescendants(Consumer<...<String>> mutator)`|*Java 8+* Invokes the [Consumer]`mutator` with the collection of descendants. (The mutator takes a list, set or map as appropriate.) 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 collection to replace the existing collection. |
338
338
|`clearDescendants()`| Removes all elements from the collection of descendants, leaving it empty. |
339
339
|`descendants()`| Returns an unmodifiable view of the collection of descendants. Changes to the collection held by the builder will be reflected in the view. |
340
340
@@ -350,7 +350,7 @@ A <code>[Map][]</code> property called 'albums' would generate:
350
350
|`putAlbums(int key, String value)`| Associates `key` with `value` in albums. Throws a NullPointerException if either parameter is null. Replaces any existing entry. |
351
351
|`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. |
352
352
|`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. |
353
-
|`mutateAlbums(Consumer<Map<Integer, String>> mutator)`|*Java 8+* 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. |
353
+
|`mutateAlbums(Consumer<Map<Integer, String>> mutator)`|*Java 8+* 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. |
354
354
|`clearAlbums()`| Removes all mappings from albums, leaving it empty. |
355
355
|`albums()`| Returns an unmodifiable view of the map of albums. Changes to the map held by the builder will be reflected in this view. |
356
356
@@ -368,7 +368,7 @@ A <code>[Multimap][]</code> property called 'awards' would generate:
368
368
|`putAllAwards(Map<? extends Integer, ? extends String> map)`| Associates all of `map`'s keys and values in awards. Throws a NullPointerException if the map is null or contains a null key or value. If awards is a map, an IllegalArgumentException will be thrown if any key is already present. |
369
369
|`removeAwards(int key, String value)`| Removes the single pair `key`-`value` from awards. If multiple pairs match, which is removed is unspecified. Throws a NullPointerException if either parameter is null. |
370
370
|`removeAllAwards(int key)`| Removes all values associated with `key` from awards. Throws a NullPointerException if the key is null. |
371
-
|`mutateAwards(Consumer<Map<Integer, String>> mutator)`|*Java 8+* Invokes the [Consumer]`mutator` with the multimap of awards. 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 multimap to replace the existing multimap. |
371
+
|`mutateAwards(Consumer<Map<Integer, String>> mutator)`|*Java 8+* Invokes the [Consumer]`mutator` with the multimap of awards. 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 multimap to replace the existing multimap. |
372
372
|`clearAwards()`| Removes all mappings from awards, leaving it empty. |
373
373
|`awards()`| Returns an unmodifiable view of the multimap of awards. Changes to the multimap held by the builder will be reflected in this view. |
0 commit comments