Package | Description |
---|---|
javaslang.collection |
Purely functional collections based on Traversable.
|
Modifier and Type | Method and Description |
---|---|
LinkedHashSet<T> |
LinkedHashSet.add(T element) |
LinkedHashSet<T> |
LinkedHashSet.addAll(Iterable<? extends T> elements) |
LinkedHashSet<T> |
LinkedHashSet.diff(Set<? extends T> elements) |
LinkedHashSet<T> |
LinkedHashSet.distinct() |
LinkedHashSet<T> |
LinkedHashSet.distinctBy(Comparator<? super T> comparator) |
<U> LinkedHashSet<T> |
LinkedHashSet.distinctBy(Function<? super T,? extends U> keyExtractor) |
LinkedHashSet<T> |
LinkedHashSet.drop(int n) |
LinkedHashSet<T> |
LinkedHashSet.dropRight(int n) |
LinkedHashSet<T> |
LinkedHashSet.dropUntil(Predicate<? super T> predicate) |
LinkedHashSet<T> |
LinkedHashSet.dropWhile(Predicate<? super T> predicate) |
static <T> LinkedHashSet<T> |
LinkedHashSet.empty() |
static <T> LinkedHashSet<T> |
LinkedHashSet.fill(int n,
Supplier<? extends T> s)
Returns a LinkedHashSet containing
n values supplied by a given Supplier s . |
LinkedHashSet<T> |
LinkedHashSet.filter(Predicate<? super T> predicate) |
<U> LinkedHashSet<U> |
LinkedHashSet.flatMap(Function<? super T,? extends Iterable<? extends U>> mapper) |
LinkedHashSet<T> |
LinkedHashSet.init() |
LinkedHashSet<T> |
LinkedHashSet.intersect(Set<? extends T> elements) |
<U> LinkedHashSet<U> |
LinkedHashSet.map(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<Boolean> |
LinkedHashSet.ofAll(boolean[] array)
Creates a LinkedHashSet based on the elements of a boolean array.
|
static LinkedHashSet<Byte> |
LinkedHashSet.ofAll(byte[] array)
Creates a LinkedHashSet based on the elements of a byte array.
|
static LinkedHashSet<Character> |
LinkedHashSet.ofAll(char[] array)
Creates a LinkedHashSet based on the elements of a char array.
|
static LinkedHashSet<Double> |
LinkedHashSet.ofAll(double[] array)
Creates a LinkedHashSet based on the elements of a double array.
|
static LinkedHashSet<Float> |
LinkedHashSet.ofAll(float[] array)
Creates a LinkedHashSet based on the elements of a float array.
|
static LinkedHashSet<Integer> |
LinkedHashSet.ofAll(int[] array)
Creates a LinkedHashSet based on the elements of an int array.
|
static <T> LinkedHashSet<T> |
LinkedHashSet.ofAll(Iterable<? extends T> elements)
Creates a LinkedHashSet of the given elements.
|
static LinkedHashSet<Long> |
LinkedHashSet.ofAll(long[] array)
Creates a LinkedHashSet based on the elements of a long array.
|
static LinkedHashSet<Short> |
LinkedHashSet.ofAll(short[] array)
Creates a LinkedHashSet based on the elements of a short array.
|
static <T> LinkedHashSet<T> |
LinkedHashSet.ofAll(Stream<? extends T> javaStream)
Creates a LinkedHashSet that contains the elements of the given
Stream . |
LinkedHashSet<T> |
LinkedHashSet.peek(Consumer<? super T> action) |
static LinkedHashSet<Character> |
LinkedHashSet.range(char from,
char toExclusive) |
static LinkedHashSet<Integer> |
LinkedHashSet.range(int from,
int toExclusive)
Creates a LinkedHashSet of int numbers starting from
from , extending to toExclusive - 1 . |
static LinkedHashSet<Long> |
LinkedHashSet.range(long from,
long toExclusive)
Creates a LinkedHashSet of long numbers starting from
from , extending to toExclusive - 1 . |
static LinkedHashSet<Character> |
LinkedHashSet.rangeBy(char from,
char toExclusive,
int step) |
static LinkedHashSet<Double> |
LinkedHashSet.rangeBy(double from,
double toExclusive,
double step) |
static LinkedHashSet<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<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<Character> |
LinkedHashSet.rangeClosed(char from,
char toInclusive) |
static LinkedHashSet<Integer> |
LinkedHashSet.rangeClosed(int from,
int toInclusive)
Creates a LinkedHashSet of int numbers starting from
from , extending to toInclusive . |
static LinkedHashSet<Long> |
LinkedHashSet.rangeClosed(long from,
long toInclusive)
Creates a LinkedHashSet of long numbers starting from
from , extending to toInclusive . |
static LinkedHashSet<Character> |
LinkedHashSet.rangeClosedBy(char from,
char toInclusive,
int step) |
static LinkedHashSet<Double> |
LinkedHashSet.rangeClosedBy(double from,
double toInclusive,
double step) |
static LinkedHashSet<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<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(Iterable<? extends T> elements) |
LinkedHashSet<T> |
LinkedHashSet.replace(T currentElement,
T newElement) |
LinkedHashSet<T> |
LinkedHashSet.replaceAll(T currentElement,
T newElement) |
LinkedHashSet<T> |
LinkedHashSet.retainAll(Iterable<? extends T> elements) |
LinkedHashSet<T> |
LinkedHashSet.scan(T zero,
BiFunction<? super T,? super T,? extends T> operation) |
<U> LinkedHashSet<U> |
LinkedHashSet.scanLeft(U zero,
BiFunction<? super U,? super T,? extends U> operation) |
<U> LinkedHashSet<U> |
LinkedHashSet.scanRight(U zero,
BiFunction<? super T,? super U,? extends U> operation) |
static <T> LinkedHashSet<T> |
LinkedHashSet.tabulate(int n,
Function<? super 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(Predicate<? super T> predicate) |
LinkedHashSet<T> |
LinkedHashSet.takeWhile(Predicate<? super T> predicate) |
LinkedHashSet<T> |
LinkedHashSet.union(Set<? extends T> elements) |
<U> LinkedHashSet<Tuple2<T,U>> |
LinkedHashSet.zip(Iterable<? extends U> that) |
<U> LinkedHashSet<Tuple2<T,U>> |
LinkedHashSet.zipAll(Iterable<? extends U> that,
T thisElem,
U thatElem) |
<U,R> LinkedHashSet<R> |
LinkedHashSet.zipWith(Iterable<? extends U> that,
BiFunction<? super T,? super U,? extends R> mapper) |
LinkedHashSet<Tuple2<T,Integer>> |
LinkedHashSet.zipWithIndex() |
<U> LinkedHashSet<U> |
LinkedHashSet.zipWithIndex(BiFunction<? super T,? super Integer,? extends U> mapper) |
Modifier and Type | Method and Description |
---|---|
static <T> Collector<T,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(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(Predicate<? super T> predicate) |
Tuple2<LinkedHashSet<T>,LinkedHashSet<T>> |
LinkedHashSet.partition(Predicate<? super T> predicate) |
Iterator<LinkedHashSet<T>> |
LinkedHashSet.sliding(int size) |
Iterator<LinkedHashSet<T>> |
LinkedHashSet.sliding(int size,
int step) |
Tuple2<LinkedHashSet<T>,LinkedHashSet<T>> |
LinkedHashSet.span(Predicate<? super T> predicate) |
Tuple2<LinkedHashSet<T>,LinkedHashSet<T>> |
LinkedHashSet.span(Predicate<? super T> predicate) |
Option<LinkedHashSet<T>> |
LinkedHashSet.tailOption() |
<T1,T2> Tuple2<LinkedHashSet<T1>,LinkedHashSet<T2>> |
LinkedHashSet.unzip(Function<? super T,Tuple2<? extends T1,? extends T2>> unzipper) |
<T1,T2> Tuple2<LinkedHashSet<T1>,LinkedHashSet<T2>> |
LinkedHashSet.unzip(Function<? super T,Tuple2<? extends T1,? extends T2>> unzipper) |
<T1,T2,T3> Tuple3<LinkedHashSet<T1>,LinkedHashSet<T2>,LinkedHashSet<T3>> |
LinkedHashSet.unzip3(Function<? super T,Tuple3<? extends T1,? extends T2,? extends T3>> unzipper) |
<T1,T2,T3> Tuple3<LinkedHashSet<T1>,LinkedHashSet<T2>,LinkedHashSet<T3>> |
LinkedHashSet.unzip3(Function<? super T,Tuple3<? extends T1,? extends T2,? extends T3>> unzipper) |
<T1,T2,T3> Tuple3<LinkedHashSet<T1>,LinkedHashSet<T2>,LinkedHashSet<T3>> |
LinkedHashSet.unzip3(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(Function<? super LinkedHashSet<T>,? extends U> f)
Transforms this
LinkedHashSet . |
Copyright © 2016. All Rights Reserved.