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

Method toSequencedSet

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

Collects stream to immutable set that keeps elements in the same order as the original stream

()

Source from the content-addressed store, hash-verified

55 * Collects stream to immutable set that keeps elements in the same order as the original stream
56 */
57 public static <T> Collector<T, ?, Set<T>> toSequencedSet() {
58 return collectingAndThen(toCollection(LinkedHashSet::new), Collections::unmodifiableSet);
59 }
60
61 /** Create an immutable set sorted in natural order */
62 public static <T extends Comparable<? super T>> Set<T> sortedSet(Set<T> source) {

Calls

no outgoing calls