MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / toSortedSet

Method toSortedSet

java/src/org/openqa/selenium/internal/Sets.java:50–52  ·  view source on GitHub ↗

Collects a stream into an immutable set sorted in natural order

()

Source from the content-addressed store, hash-verified

48
49 /** Collects a stream into an immutable set sorted in natural order */
50 public static <T extends Comparable<? super T>> Collector<T, ?, Set<T>> toSortedSet() {
51 return collectingAndThen(toCollection(TreeSet::new), Collections::unmodifiableSet);
52 }
53
54 /**
55 * Collects stream to immutable set that keeps elements in the same order as the original stream

Callers 8

getSectionNamesMethod · 0.80
getOptionsMethod · 0.80
getSectionNamesMethod · 0.80
getOptionsMethod · 0.80
getSectionNamesMethod · 0.80
getOptionsMethod · 0.80

Calls

no outgoing calls

Tested by 1