Uses of Class
io.vavr.collection.HashSet
Packages that use HashSet
-
Uses of HashSet in io.vavr.collection
Fields in io.vavr.collection declared as HashSetMethods in io.vavr.collection that return HashSetModifier and TypeMethodDescription<R> HashSet
<R> HashSet.collect
(PartialFunction<? super T, ? extends R> partialFunction) HashSet.distinct()
HashSet.distinctBy
(Comparator<? super T> comparator) HashSet.distinctBy
(Function<? super T, ? extends U> keyExtractor) HashSet.drop
(int n) HashSet.dropRight
(int n) static <T> HashSet
<T> HashSet.empty()
static <T> HashSet
<T> Returns a HashSet containing tuples returned byn
calls to a given Suppliers
.<U> HashSet
<U> HashSet.init()
<U> HashSet
<U> static <T> HashSet
<T> Narrows a widenedHashSet<? extends T>
toHashSet<T>
by performing a type-safe cast.static <T> HashSet
<T> HashSet.of
(T element) Returns a singletonHashSet
, i.e.static <T> HashSet
<T> HashSet.of
(T... elements) Creates a HashSet of the given elements.HashSet.ofAll
(boolean... elements) Creates a HashSet from boolean values.HashSet.ofAll
(byte... elements) Creates a HashSet from byte values.HashSet.ofAll
(char... elements) Creates a HashSet from char values.HashSet.ofAll
(double... elements) Creates a HashSet from double values.HashSet.ofAll
(float... elements) Creates a HashSet from float values.HashSet.ofAll
(int... elements) Creates a HashSet from int values.HashSet.ofAll
(long... elements) Creates a HashSet from long values.HashSet.ofAll
(short... elements) Creates a HashSet from short values.static <T> HashSet
<T> Creates a HashSet of the given elements.static <T> HashSet
<T> Creates a HashSet that contains the elements of the givenStream
.HashSet.range
(char from, char toExclusive) HashSet.range
(int from, int toExclusive) Creates a HashSet of int numbers starting fromfrom
, extending totoExclusive - 1
.HashSet.range
(long from, long toExclusive) Creates a HashSet of long numbers starting fromfrom
, extending totoExclusive - 1
.HashSet.rangeBy
(char from, char toExclusive, int step) HashSet.rangeBy
(double from, double toExclusive, double step) HashSet.rangeBy
(int from, int toExclusive, int step) Creates a HashSet of int numbers starting fromfrom
, extending totoExclusive - 1
, withstep
.HashSet.rangeBy
(long from, long toExclusive, long step) Creates a HashSet of long numbers starting fromfrom
, extending totoExclusive - 1
, withstep
.HashSet.rangeClosed
(char from, char toInclusive) HashSet.rangeClosed
(int from, int toInclusive) Creates a HashSet of int numbers starting fromfrom
, extending totoInclusive
.HashSet.rangeClosed
(long from, long toInclusive) Creates a HashSet of long numbers starting fromfrom
, extending totoInclusive
.HashSet.rangeClosedBy
(char from, char toInclusive, int step) HashSet.rangeClosedBy
(double from, double toInclusive, double step) HashSet.rangeClosedBy
(int from, int toInclusive, int step) Creates a HashSet of int numbers starting fromfrom
, extending totoInclusive
, withstep
.HashSet.rangeClosedBy
(long from, long toInclusive, long step) Creates a HashSet of long numbers starting fromfrom
, extending totoInclusive
, withstep
.HashSet.replaceAll
(T currentElement, T newElement) <U> HashSet
<U> HashSet.scanLeft
(U zero, BiFunction<? super U, ? super T, ? extends U> operation) <U> HashSet
<U> HashSet.scanRight
(U zero, BiFunction<? super T, ? super U, ? extends U> operation) static <T> HashSet
<T> Returns an HashSet containingn
values of a given Functionf
over a range of integer values from 0 ton - 1
.HashSet.tail()
HashSet.take
(int n) HashSet.takeRight
(int n) <U,
R> HashSet <R> HashSet.zipWith
(Iterable<? extends U> that, BiFunction<? super T, ? super U, ? extends R> mapper) HashSet.zipWithIndex()
<U> HashSet
<U> HashSet.zipWithIndex
(BiFunction<? super T, ? super Integer, ? extends U> mapper) Methods in io.vavr.collection that return types with arguments of type HashSetModifier and TypeMethodDescriptionHashSet.collector()
Returns aCollector
which may be used in conjunction withStream.collect(java.util.stream.Collector)
to obtain aHashSet
.HashSet.grouped
(int size) HashSet.initOption()
HashSet.sliding
(int size) HashSet.sliding
(int size, int step) HashSet.tailOption()
Methods in io.vavr.collection with parameters of type HashSetModifier and TypeMethodDescriptionstatic <T> HashSet
<T> Narrows a widenedHashSet<? extends T>
toHashSet<T>
by performing a type-safe cast.Method parameters in io.vavr.collection with type arguments of type HashSet