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
+5-1
Original file line number
Diff line number
Diff line change
@@ -329,7 +329,7 @@ nulls.
329
329
List<String> descendants();
330
330
```
331
331
332
-
A <code>[List][]</code>, <code>[Set][]</code> or <code>[Multiset][]</code>
332
+
A <code>[List][]</code>, <code>[Set][]</code>, <code>[SortedSet][]</code> or <code>[Multiset][]</code>
333
333
property called 'descendants' would generate:
334
334
335
335
| Method | Description |
@@ -340,6 +340,7 @@ property called 'descendants' would generate:
340
340
|`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. |
341
341
|`clearDescendants()`| Removes all elements from the collection of descendants, leaving it empty. |
342
342
|`descendants()`| Returns an unmodifiable view of the collection of descendants. Changes to the collection held by the builder will be reflected in the view. |
343
+
|`setComparatorForDescendants(Comparator<? super String> comparator)`|*SortedSet only* A protected method that sets the [comparator] to keep the set elements ordered by. Must be called before any other accessor method for this property. Defaults to the [natural ordering] of the set's elements. |
343
344
344
345
```java
345
346
/** Returns a map of favourite albums by year. **/
0 commit comments