Package org.openqa.selenium.internal
Class Sets
java.lang.Object
org.openqa.selenium.internal.Sets
All methods return immutable objects
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> booleanhaveCommonElements(Set<T> set1, Set<T> set2) Check if two sets have at least one common elementstatic <T> Set<T> sequencedSetOf(T... values) Create an immutable Set that keeps the order of elementsstatic <T extends Comparable<? super T>>
Set<T> Create an immutable set sorted in natural orderstatic <T extends Comparable<T>>
Set<T> sortedSetOf(T... values) Create an immutable set that sorts its elements in natural orderCollects stream to immutable set that keeps elements in the same order as the original streamstatic <T extends Comparable<? super T>>
Collector<T, ?, Set<T>> Collects a stream into an immutable set sorted in natural order
-
Constructor Details
-
Sets
public Sets()
-
-
Method Details
-
sequencedSetOf
Create an immutable Set that keeps the order of elements -
sortedSetOf
Create an immutable set that sorts its elements in natural order -
toSortedSet
Collects a stream into an immutable set sorted in natural order -
toSequencedSet
Collects stream to immutable set that keeps elements in the same order as the original stream -
sortedSet
Create an immutable set sorted in natural order -
haveCommonElements
Check if two sets have at least one common element
-