Package | Description |
---|---|
io.vavr.collection |
Purely functional collections based on Traversable.
|
Modifier and Type | Method and Description |
---|---|
HashSet<T> |
HashSet.add(T element) |
HashSet<T> |
HashSet.addAll(Iterable<? extends T> elements) |
<R> HashSet<R> |
HashSet.collect(PartialFunction<? super T,? extends R> partialFunction) |
HashSet<T> |
HashSet.diff(Set<? extends T> elements) |
HashSet<T> |
HashSet.distinct() |
HashSet<T> |
HashSet.distinctBy(Comparator<? super T> comparator) |
<U> HashSet<T> |
HashSet.distinctBy(Function<? super T,? extends U> keyExtractor) |
HashSet<T> |
HashSet.drop(int n) |
HashSet<T> |
HashSet.dropRight(int n) |
HashSet<T> |
HashSet.dropUntil(Predicate<? super T> predicate) |
HashSet<T> |
HashSet.dropWhile(Predicate<? super T> predicate) |
static <T> HashSet<T> |
HashSet.empty() |
static <T> HashSet<T> |
HashSet.fill(int n,
Supplier<? extends T> s)
Returns a HashSet containing tuples returned by
n calls to a given Supplier s . |
HashSet<T> |
HashSet.filter(Predicate<? super T> predicate) |
<U> HashSet<U> |
HashSet.flatMap(Function<? super T,? extends Iterable<? extends U>> mapper) |
HashSet<T> |
HashSet.init() |
HashSet<T> |
HashSet.intersect(Set<? extends T> elements) |
<U> HashSet<U> |
HashSet.map(Function<? super T,? extends U> mapper) |
static <T> HashSet<T> |
HashSet.narrow(HashSet<? extends T> hashSet)
Narrows a widened
HashSet<? extends T> to HashSet<T>
by performing a type-safe cast. |
static <T> HashSet<T> |
HashSet.of(T... elements)
Creates a HashSet of the given elements.
|
static <T> HashSet<T> |
HashSet.of(T element)
Returns a singleton
HashSet , i.e. |
static HashSet<Boolean> |
HashSet.ofAll(boolean... elements)
Creates a HashSet from boolean values.
|
static HashSet<Byte> |
HashSet.ofAll(byte... elements)
Creates a HashSet from byte values.
|
static HashSet<Character> |
HashSet.ofAll(char... elements)
Creates a HashSet from char values.
|
static HashSet<Double> |
HashSet.ofAll(double... elements)
Creates a HashSet from double values.
|
static HashSet<Float> |
HashSet.ofAll(float... elements)
Creates a HashSet from float values.
|
static HashSet<Integer> |
HashSet.ofAll(int... elements)
Creates a HashSet from int values.
|
static <T> HashSet<T> |
HashSet.ofAll(Iterable<? extends T> elements)
Creates a HashSet of the given elements.
|
static HashSet<Long> |
HashSet.ofAll(long... elements)
Creates a HashSet from long values.
|
static HashSet<Short> |
HashSet.ofAll(short... elements)
Creates a HashSet from short values.
|
static <T> HashSet<T> |
HashSet.ofAll(Stream<? extends T> javaStream)
Creates a HashSet that contains the elements of the given
Stream . |
HashSet<T> |
HashSet.orElse(Iterable<? extends T> other) |
HashSet<T> |
HashSet.orElse(Supplier<? extends Iterable<? extends T>> supplier) |
HashSet<T> |
HashSet.peek(Consumer<? super T> action) |
static HashSet<Character> |
HashSet.range(char from,
char toExclusive) |
static HashSet<Integer> |
HashSet.range(int from,
int toExclusive)
Creates a HashSet of int numbers starting from
from , extending to toExclusive - 1 . |
static HashSet<Long> |
HashSet.range(long from,
long toExclusive)
Creates a HashSet of long numbers starting from
from , extending to toExclusive - 1 . |
static HashSet<Character> |
HashSet.rangeBy(char from,
char toExclusive,
int step) |
static HashSet<Double> |
HashSet.rangeBy(double from,
double toExclusive,
double step) |
static HashSet<Integer> |
HashSet.rangeBy(int from,
int toExclusive,
int step)
Creates a HashSet of int numbers starting from
from , extending to toExclusive - 1 ,
with step . |
static HashSet<Long> |
HashSet.rangeBy(long from,
long toExclusive,
long step)
Creates a HashSet of long numbers starting from
from , extending to toExclusive - 1 ,
with step . |
static HashSet<Character> |
HashSet.rangeClosed(char from,
char toInclusive) |
static HashSet<Integer> |
HashSet.rangeClosed(int from,
int toInclusive)
Creates a HashSet of int numbers starting from
from , extending to toInclusive . |
static HashSet<Long> |
HashSet.rangeClosed(long from,
long toInclusive)
Creates a HashSet of long numbers starting from
from , extending to toInclusive . |
static HashSet<Character> |
HashSet.rangeClosedBy(char from,
char toInclusive,
int step) |
static HashSet<Double> |
HashSet.rangeClosedBy(double from,
double toInclusive,
double step) |
static HashSet<Integer> |
HashSet.rangeClosedBy(int from,
int toInclusive,
int step)
Creates a HashSet of int numbers starting from
from , extending to toInclusive ,
with step . |
static HashSet<Long> |
HashSet.rangeClosedBy(long from,
long toInclusive,
long step)
Creates a HashSet of long numbers starting from
from , extending to toInclusive ,
with step . |
HashSet<T> |
HashSet.reject(Predicate<? super T> predicate) |
HashSet<T> |
HashSet.remove(T element) |
HashSet<T> |
HashSet.removeAll(Iterable<? extends T> elements) |
HashSet<T> |
HashSet.replace(T currentElement,
T newElement) |
HashSet<T> |
HashSet.replaceAll(T currentElement,
T newElement) |
HashSet<T> |
HashSet.retainAll(Iterable<? extends T> elements) |
HashSet<T> |
HashSet.scan(T zero,
BiFunction<? super T,? super T,? extends T> operation) |
<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> |
HashSet.tabulate(int n,
Function<? super Integer,? extends T> f)
Returns an HashSet containing
n values of a given Function f
over a range of integer values from 0 to n - 1 . |
HashSet<T> |
HashSet.tail() |
HashSet<T> |
HashSet.take(int n) |
HashSet<T> |
HashSet.takeRight(int n) |
HashSet<T> |
HashSet.takeUntil(Predicate<? super T> predicate) |
HashSet<T> |
HashSet.takeWhile(Predicate<? super T> predicate) |
HashSet<T> |
HashSet.union(Set<? extends T> elements) |
<U> HashSet<Tuple2<T,U>> |
HashSet.zip(Iterable<? extends U> that) |
<U> HashSet<Tuple2<T,U>> |
HashSet.zipAll(Iterable<? extends U> that,
T thisElem,
U thatElem) |
<U,R> HashSet<R> |
HashSet.zipWith(Iterable<? extends U> that,
BiFunction<? super T,? super U,? extends R> mapper) |
HashSet<Tuple2<T,Integer>> |
HashSet.zipWithIndex() |
<U> HashSet<U> |
HashSet.zipWithIndex(BiFunction<? super T,? super Integer,? extends U> mapper) |
Modifier and Type | Method and Description |
---|---|
static <T> Collector<T,ArrayList<T>,HashSet<T>> |
HashSet.collector()
Returns a
Collector which may be used in conjunction with
Stream.collect(java.util.stream.Collector) to obtain a HashSet . |
<C> Map<C,HashSet<T>> |
HashSet.groupBy(Function<? super T,? extends C> classifier) |
Iterator<HashSet<T>> |
HashSet.grouped(int size) |
Option<HashSet<T>> |
HashSet.initOption() |
Tuple2<HashSet<T>,HashSet<T>> |
HashSet.partition(Predicate<? super T> predicate) |
Tuple2<HashSet<T>,HashSet<T>> |
HashSet.partition(Predicate<? super T> predicate) |
Iterator<HashSet<T>> |
HashSet.slideBy(Function<? super T,?> classifier) |
Iterator<HashSet<T>> |
HashSet.sliding(int size) |
Iterator<HashSet<T>> |
HashSet.sliding(int size,
int step) |
Tuple2<HashSet<T>,HashSet<T>> |
HashSet.span(Predicate<? super T> predicate) |
Tuple2<HashSet<T>,HashSet<T>> |
HashSet.span(Predicate<? super T> predicate) |
Option<HashSet<T>> |
HashSet.tailOption() |
<T1,T2> Tuple2<HashSet<T1>,HashSet<T2>> |
HashSet.unzip(Function<? super T,Tuple2<? extends T1,? extends T2>> unzipper) |
<T1,T2> Tuple2<HashSet<T1>,HashSet<T2>> |
HashSet.unzip(Function<? super T,Tuple2<? extends T1,? extends T2>> unzipper) |
<T1,T2,T3> Tuple3<HashSet<T1>,HashSet<T2>,HashSet<T3>> |
HashSet.unzip3(Function<? super T,Tuple3<? extends T1,? extends T2,? extends T3>> unzipper) |
<T1,T2,T3> Tuple3<HashSet<T1>,HashSet<T2>,HashSet<T3>> |
HashSet.unzip3(Function<? super T,Tuple3<? extends T1,? extends T2,? extends T3>> unzipper) |
<T1,T2,T3> Tuple3<HashSet<T1>,HashSet<T2>,HashSet<T3>> |
HashSet.unzip3(Function<? super T,Tuple3<? extends T1,? extends T2,? extends T3>> unzipper) |
Modifier and Type | Method and Description |
---|---|
static <T> HashSet<T> |
HashSet.narrow(HashSet<? extends T> hashSet)
Narrows a widened
HashSet<? extends T> to HashSet<T>
by performing a type-safe cast. |
Modifier and Type | Method and Description |
---|---|
<U> U |
HashSet.transform(Function<? super HashSet<T>,? extends U> f)
Transforms this
HashSet . |
Copyright © 2019. All Rights Reserved.