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