Uses of Class
io.vavr.collection.TreeSet
Packages that use TreeSet
-
Uses of TreeSet in io.vavr.collection
Methods in io.vavr.collection that return TreeSetModifier and TypeMethodDescription<R> TreeSet
<R> TreeSet.collect
(PartialFunction<? super T, ? extends R> partialFunction) TreeSet.distinct()
TreeSet.distinctBy
(Comparator<? super T> comparator) TreeSet.distinctBy
(Function<? super T, ? extends U> keyExtractor) TreeSet.drop
(int n) TreeSet.dropRight
(int n) static <T extends Comparable<? super T>>
TreeSet<T> TreeSet.empty()
static <T> TreeSet
<T> TreeSet.empty
(Comparator<? super T> comparator) static <T extends Comparable<? super T>>
TreeSet<T> Returns a TreeSet containing tuples returned byn
calls to a given Suppliers
.static <T> TreeSet
<T> TreeSet.fill
(Comparator<? super T> comparator, int n, Supplier<? extends T> s) Returns a TreeSet containing tuples returned byn
calls to a given Suppliers
.<U> TreeSet
<U> TreeSet.flatMap
(Comparator<? super U> comparator, Function<? super T, ? extends Iterable<? extends U>> mapper) <U> TreeSet
<U> TreeSet.init()
<U> TreeSet
<U> TreeSet.map
(Comparator<? super U> comparator, Function<? super T, ? extends U> mapper) <U> TreeSet
<U> static <T> TreeSet
<T> Narrows a widenedTreeSet<? extends T>
toTreeSet<T>
by performing a type-safe cast.static <T> TreeSet
<T> TreeSet.of
(Comparator<? super T> comparator, T value) static <T> TreeSet
<T> TreeSet.of
(Comparator<? super T> comparator, T... values) static <T extends Comparable<? super T>>
TreeSet<T> TreeSet.of
(T value) static <T extends Comparable<? super T>>
TreeSet<T> TreeSet.of
(T... values) TreeSet.ofAll
(boolean... elements) Creates a TreeSet from boolean values.TreeSet.ofAll
(byte... elements) Creates a TreeSet from byte values.TreeSet.ofAll
(char... elements) Creates a TreeSet from char values.TreeSet.ofAll
(double... elements) Creates a TreeSet from double values.TreeSet.ofAll
(float... elements) Creates a TreeSet from float values.TreeSet.ofAll
(int... elements) Creates a TreeSet from int values.TreeSet.ofAll
(long... elements) Creates a TreeSet from long values.TreeSet.ofAll
(short... elements) Creates a TreeSet from short values.static <T extends Comparable<? super T>>
TreeSet<T> static <T> TreeSet
<T> TreeSet.ofAll
(Comparator<? super T> comparator, Iterable<? extends T> values) static <T> TreeSet
<T> TreeSet.ofAll
(Comparator<? super T> comparator, Stream<? extends T> javaStream) static <T extends Comparable<? super T>>
TreeSet<T> Returns thisTreeSet
if it is nonempty, otherwiseTreeSet
created from iterable, using existing comparator.Returns thisTreeSet
if it is nonempty, otherwiseTreeSet
created from result of evaluating supplier, using existing comparator.TreeSet.range
(char from, char toExclusive) TreeSet.range
(int from, int toExclusive) Creates a TreeSet of int numbers starting fromfrom
, extending totoExclusive - 1
.TreeSet.range
(long from, long toExclusive) Creates a TreeSet of long numbers starting fromfrom
, extending totoExclusive - 1
.TreeSet.rangeBy
(char from, char toExclusive, int step) TreeSet.rangeBy
(double from, double toExclusive, double step) TreeSet.rangeBy
(int from, int toExclusive, int step) Creates a TreeSet of int numbers starting fromfrom
, extending totoExclusive - 1
, withstep
.TreeSet.rangeBy
(long from, long toExclusive, long step) Creates a TreeSet of long numbers starting fromfrom
, extending totoExclusive - 1
, withstep
.TreeSet.rangeClosed
(char from, char toInclusive) TreeSet.rangeClosed
(int from, int toInclusive) Creates a TreeSet of int numbers starting fromfrom
, extending totoInclusive
.TreeSet.rangeClosed
(long from, long toInclusive) Creates a TreeSet of long numbers starting fromfrom
, extending totoInclusive
.TreeSet.rangeClosedBy
(char from, char toInclusive, int step) TreeSet.rangeClosedBy
(double from, double toInclusive, double step) TreeSet.rangeClosedBy
(int from, int toInclusive, int step) Creates a TreeSet of int numbers starting fromfrom
, extending totoInclusive
, withstep
.TreeSet.rangeClosedBy
(long from, long toInclusive, long step) Creates a TreeSet of long numbers starting fromfrom
, extending totoInclusive
, withstep
.TreeSet.replaceAll
(T currentElement, T newElement) static <T extends Comparable<? super T>>
TreeSet<T> Returns a TreeSet containingn
values of a given Functionf
over a range of integer values from 0 ton - 1
.static <T> TreeSet
<T> TreeSet.tabulate
(Comparator<? super T> comparator, int n, Function<? super Integer, ? extends T> f) Returns a TreeSet containingn
values of a given Functionf
over a range of integer values from 0 ton - 1
.TreeSet.tail()
TreeSet.take
(int n) TreeSet.takeRight
(int n) default <U,
R> TreeSet <R> BitSet.zipWith
(Iterable<? extends U> that, BiFunction<? super T, ? super U, ? extends R> mapper) <U,
R> TreeSet <R> TreeSet.zipWith
(Iterable<? extends U> that, BiFunction<? super T, ? super U, ? extends R> mapper) BitSet.zipWithIndex()
default <U> TreeSet
<U> BitSet.zipWithIndex
(BiFunction<? super T, ? super Integer, ? extends U> mapper) TreeSet.zipWithIndex()
Methods in io.vavr.collection that return types with arguments of type TreeSetModifier and TypeMethodDescriptionstatic <T extends Comparable<? super T>>
Collector<T, ArrayList<T>, TreeSet<T>> TreeSet.collector()
Returns aCollector
which may be used in conjunction withStream.collect(java.util.stream.Collector)
to obtain aTreeSet
.TreeSet.collector
(Comparator<? super T> comparator) Returns aCollector
which may be used in conjunction withStream.collect(java.util.stream.Collector)
to obtain aTreeSet
.TreeSet.grouped
(int size) TreeSet.initOption()
TreeSet.sliding
(int size) TreeSet.sliding
(int size, int step) TreeSet.tailOption()
Methods in io.vavr.collection with parameters of type TreeSetModifier and TypeMethodDescriptionstatic <T> TreeSet
<T> Narrows a widenedTreeSet<? extends T>
toTreeSet<T>
by performing a type-safe cast.Method parameters in io.vavr.collection with type arguments of type TreeSet