Package | Description |
---|---|
javaslang | |
javaslang.collection |
Purely functional collections based on Traversable.
|
Modifier and Type | Method and Description |
---|---|
default Queue<T> |
Value.toQueue()
Converts this to a
Queue . |
Modifier and Type | Method and Description |
---|---|
Queue<T> |
Queue.append(T element) |
Queue<T> |
Queue.appendAll(Iterable<? extends T> elements) |
Queue<Queue<T>> |
Queue.combinations() |
Queue<Queue<T>> |
Queue.combinations(int k) |
Queue<T> |
Queue.distinct() |
Queue<T> |
Queue.distinctBy(Comparator<? super T> comparator) |
<U> Queue<T> |
Queue.distinctBy(Function<? super T,? extends U> keyExtractor) |
Queue<T> |
Queue.drop(long n) |
Queue<T> |
Queue.dropRight(long n) |
Queue<T> |
Queue.dropUntil(Predicate<? super T> predicate) |
Queue<T> |
Queue.dropWhile(Predicate<? super T> predicate) |
static <T> Queue<T> |
Queue.empty()
Returns the empty Queue.
|
Queue<T> |
Queue.enqueue(T... elements)
Enqueues the given elements.
|
Queue<T> |
Queue.enqueue(T element)
Enqueues a new element.
|
Queue<T> |
Queue.enqueueAll(Iterable<? extends T> elements)
Enqueues the given elements.
|
static <T> Queue<T> |
Queue.fill(int n,
Supplier<? extends T> s)
Returns a Queue containing
n values supplied by a given Supplier s . |
Queue<T> |
Queue.filter(Predicate<? super T> predicate) |
<U> Queue<U> |
Queue.flatMap(Function<? super T,? extends Iterable<? extends U>> mapper) |
Queue<T> |
Queue.init() |
Queue<T> |
Queue.insert(int index,
T element) |
Queue<T> |
Queue.insertAll(int index,
Iterable<? extends T> elements) |
Queue<T> |
Queue.intersperse(T element) |
<U> Queue<U> |
Queue.map(Function<? super T,? extends U> mapper) |
static <T> Queue<T> |
Queue.narrow(Queue<? extends T> queue)
Narrows a widened
Queue<? extends T> to Queue<T>
by performing a type safe-cast. |
static <T> Queue<T> |
Queue.of(T... elements)
Creates a Queue of the given elements.
|
static <T> Queue<T> |
Queue.of(T element)
Returns a singleton
Queue , i.e. |
static Queue<Boolean> |
Queue.ofAll(boolean[] array)
Creates a Queue based on the elements of a boolean array.
|
static Queue<Byte> |
Queue.ofAll(byte[] array)
Creates a Queue based on the elements of a byte array.
|
static Queue<Character> |
Queue.ofAll(char[] array)
Creates a Queue based on the elements of a char array.
|
static Queue<Double> |
Queue.ofAll(double[] array)
Creates a Queue based on the elements of a double array.
|
static Queue<Float> |
Queue.ofAll(float[] array)
Creates a Queue based on the elements of a float array.
|
static Queue<Integer> |
Queue.ofAll(int[] array)
Creates a Queue based on the elements of an int array.
|
static <T> Queue<T> |
Queue.ofAll(Iterable<? extends T> elements)
Creates a Queue of the given elements.
|
static Queue<Long> |
Queue.ofAll(long[] array)
Creates a Queue based on the elements of a long array.
|
static Queue<Short> |
Queue.ofAll(short[] array)
Creates a Queue based on the elements of a short array.
|
Queue<T> |
Queue.padTo(int length,
T element) |
Queue<T> |
Queue.patch(int from,
Iterable<? extends T> that,
int replaced) |
Queue<T> |
Queue.peek(Consumer<? super T> action) |
Queue<Queue<T>> |
Queue.permutations() |
Queue<T> |
Queue.prepend(T element) |
Queue<T> |
Queue.prependAll(Iterable<? extends T> elements) |
static Queue<Character> |
Queue.range(char from,
char toExclusive) |
static Queue<Integer> |
Queue.range(int from,
int toExclusive)
Creates a Queue of int numbers starting from
from , extending to toExclusive - 1 . |
static Queue<Long> |
Queue.range(long from,
long toExclusive)
Creates a Queue of long numbers starting from
from , extending to toExclusive - 1 . |
static Queue<Character> |
Queue.rangeBy(char from,
char toExclusive,
int step) |
static Queue<Double> |
Queue.rangeBy(double from,
double toExclusive,
double step) |
static Queue<Integer> |
Queue.rangeBy(int from,
int toExclusive,
int step)
Creates a Queue of int numbers starting from
from , extending to toExclusive - 1 ,
with step . |
static Queue<Long> |
Queue.rangeBy(long from,
long toExclusive,
long step)
Creates a Queue of long numbers starting from
from , extending to toExclusive - 1 ,
with step . |
static Queue<Character> |
Queue.rangeClosed(char from,
char toInclusive) |
static Queue<Integer> |
Queue.rangeClosed(int from,
int toInclusive)
Creates a Queue of int numbers starting from
from , extending to toInclusive . |
static Queue<Long> |
Queue.rangeClosed(long from,
long toInclusive)
Creates a Queue of long numbers starting from
from , extending to toInclusive . |
static Queue<Character> |
Queue.rangeClosedBy(char from,
char toInclusive,
int step) |
static Queue<Double> |
Queue.rangeClosedBy(double from,
double toInclusive,
double step) |
static Queue<Integer> |
Queue.rangeClosedBy(int from,
int toInclusive,
int step)
Creates a Queue of int numbers starting from
from , extending to toInclusive ,
with step . |
static Queue<Long> |
Queue.rangeClosedBy(long from,
long toInclusive,
long step)
Creates a Queue of long numbers starting from
from , extending to toInclusive ,
with step . |
Queue<T> |
Queue.remove(T element) |
Queue<T> |
Queue.removeAll(Iterable<? extends T> elements) |
Queue<T> |
Queue.removeAll(T element) |
Queue<T> |
Queue.removeAt(int index) |
Queue<T> |
Queue.removeFirst(Predicate<T> predicate) |
Queue<T> |
Queue.removeLast(Predicate<T> predicate) |
Queue<T> |
Queue.replace(T currentElement,
T newElement) |
Queue<T> |
Queue.replaceAll(T currentElement,
T newElement) |
Queue<T> |
Queue.retainAll(Iterable<? extends T> elements) |
Queue<T> |
Queue.reverse() |
Queue<T> |
Queue.scan(T zero,
BiFunction<? super T,? super T,? extends T> operation) |
<U> Queue<U> |
Queue.scanLeft(U zero,
BiFunction<? super U,? super T,? extends U> operation) |
<U> Queue<U> |
Queue.scanRight(U zero,
BiFunction<? super T,? super U,? extends U> operation) |
Queue<T> |
Queue.slice(long beginIndex,
long endIndex) |
<U> Queue<T> |
Queue.sortBy(Comparator<? super U> comparator,
Function<? super T,? extends U> mapper) |
<U extends Comparable<? super U>> |
Queue.sortBy(Function<? super T,? extends U> mapper) |
Queue<T> |
Queue.sorted() |
Queue<T> |
Queue.sorted(Comparator<? super T> comparator) |
Queue<T> |
Queue.subSequence(int beginIndex) |
Queue<T> |
Queue.subSequence(int beginIndex,
int endIndex) |
static <T> Queue<T> |
Queue.tabulate(int n,
Function<? super Integer,? extends T> f)
Returns a Queue containing
n values of a given Function f
over a range of integer values from 0 to n - 1 . |
Queue<T> |
Queue.tail() |
Queue<T> |
Queue.take(long n) |
Queue<T> |
Queue.takeRight(long n) |
Queue<T> |
Queue.takeUntil(Predicate<? super T> predicate) |
Queue<T> |
Queue.takeWhile(Predicate<? super T> predicate) |
<U> Queue<U> |
Queue.unit(Iterable<? extends U> iterable) |
Queue<T> |
Queue.update(int index,
T element) |
<U> Queue<Tuple2<T,U>> |
Queue.zip(Iterable<? extends U> that) |
<U> Queue<Tuple2<T,U>> |
Queue.zipAll(Iterable<? extends U> that,
T thisElem,
U thatElem) |
Queue<Tuple2<T,Long>> |
Queue.zipWithIndex() |
Modifier and Type | Method and Description |
---|---|
static <T> Collector<T,ArrayList<T>,Queue<T>> |
Queue.collector()
Returns a
Collector which may be used in conjunction with
Stream.collect(java.util.stream.Collector) to obtain a Queue
. |
Queue<Queue<T>> |
Queue.combinations() |
Queue<Queue<T>> |
Queue.combinations(int k) |
Iterator<Queue<T>> |
Queue.crossProduct(int power) |
Tuple2<T,Queue<T>> |
Queue.dequeue()
Removes an element from this Queue.
|
Option<Tuple2<T,Queue<T>>> |
Queue.dequeueOption()
Removes an element from this Queue.
|
<C> Map<C,Queue<T>> |
Queue.groupBy(Function<? super T,? extends C> classifier) |
Iterator<Queue<T>> |
Queue.grouped(long size) |
Option<Queue<T>> |
Queue.initOption() |
Tuple2<Queue<T>,Queue<T>> |
Queue.partition(Predicate<? super T> predicate) |
Tuple2<Queue<T>,Queue<T>> |
Queue.partition(Predicate<? super T> predicate) |
Queue<Queue<T>> |
Queue.permutations() |
Iterator<Queue<T>> |
Queue.sliding(long size) |
Iterator<Queue<T>> |
Queue.sliding(long size,
long step) |
Tuple2<Queue<T>,Queue<T>> |
Queue.span(Predicate<? super T> predicate) |
Tuple2<Queue<T>,Queue<T>> |
Queue.span(Predicate<? super T> predicate) |
Tuple2<Queue<T>,Queue<T>> |
Queue.splitAt(long n) |
Tuple2<Queue<T>,Queue<T>> |
Queue.splitAt(long n) |
Tuple2<Queue<T>,Queue<T>> |
Queue.splitAt(Predicate<? super T> predicate) |
Tuple2<Queue<T>,Queue<T>> |
Queue.splitAt(Predicate<? super T> predicate) |
Tuple2<Queue<T>,Queue<T>> |
Queue.splitAtInclusive(Predicate<? super T> predicate) |
Tuple2<Queue<T>,Queue<T>> |
Queue.splitAtInclusive(Predicate<? super T> predicate) |
Option<Queue<T>> |
Queue.tailOption() |
<T1,T2> Tuple2<Queue<T1>,Queue<T2>> |
Queue.unzip(Function<? super T,Tuple2<? extends T1,? extends T2>> unzipper) |
<T1,T2> Tuple2<Queue<T1>,Queue<T2>> |
Queue.unzip(Function<? super T,Tuple2<? extends T1,? extends T2>> unzipper) |
<T1,T2,T3> Tuple3<Queue<T1>,Queue<T2>,Queue<T3>> |
Queue.unzip3(Function<? super T,Tuple3<? extends T1,? extends T2,? extends T3>> unzipper) |
<T1,T2,T3> Tuple3<Queue<T1>,Queue<T2>,Queue<T3>> |
Queue.unzip3(Function<? super T,Tuple3<? extends T1,? extends T2,? extends T3>> unzipper) |
<T1,T2,T3> Tuple3<Queue<T1>,Queue<T2>,Queue<T3>> |
Queue.unzip3(Function<? super T,Tuple3<? extends T1,? extends T2,? extends T3>> unzipper) |
Modifier and Type | Method and Description |
---|---|
static <T> Queue<T> |
Queue.narrow(Queue<? extends T> queue)
Narrows a widened
Queue<? extends T> to Queue<T>
by performing a type safe-cast. |
Modifier and Type | Method and Description |
---|---|
<U> U |
Queue.transform(Function<? super Queue<T>,? extends U> f)
Transforms this
Queue . |
Copyright © 2016. All Rights Reserved.