| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Tuple2 | Returns: a tuple containing the first element and the remaining elements of this QueueRemoves an element from this Queue. |
| public Option | Returns: None if this Queue is empty, otherwise Some Tuple containing the first element and the remaining elements of this QueueRemoves an element from this Queue. |
| public Q | dropUntil(Predicate<? super T>
A condition tested subsequently for this elements. predicate)Implements io. Drops elements until the predicate holds for the current element. |
| public abstract Q | dropWhile(Predicate<? super T>
A condition tested subsequently for this elements. predicate)Redeclares io. Drops elements while the predicate holds for the current element. |
| public abstract Q | Returns: a newQueue instance, containing the new elementThe new element element)Enqueues a new element. |
| public Q | Returns: a newQueue instance, containing the new elementsElements, may be empty elements)Enqueues the given elements. |
| public abstract Q | Returns: a newQueue instance, containing the new elementsAn Iterable of elements, may be empty elements)Enqueues the given elements. |
| public abstract Q | Returns: a new instance containing all elements except the last.Redeclares io. Dual of tail(), returning all elements except the last. |
| public Option | Returns: Some(Q) or None if this is empty.Overrides default io. Dual of tailOption(), returning all elements except the last as |
| public T | |
| public Q | peek(Consumer<? super T>
The action that will be performed on the element(s). action)Implements io. Performs the given |
| public Option | Returns: None if this Queue is empty, otherwise a Some containing the first elementReturns the first element without modifying the Queue. |
| public Q | reject(Predicate<? super T>
A predicate predicate)Overrides default io. Returns a new traversable consisting of all elements which do not satisfy the given predicate. |
| public Q | |
| public Q | |
| public Q | retainAll(Iterable<? extends T>
Elements to be kept. elements)Implements io. Keeps all occurrences of the given elements from this. |
| public abstract Q | Returns: A new instance of Traversable containing all elements except the first.Redeclares io. Drops the first element of a non-empty Traversable. |
| public Option | tailOption()
Implements io. Drops the first element of a non-empty Traversable and returns an |
| public abstract Q | takeUntil(Predicate<? super T>
A condition tested subsequently for this elements. predicate)Redeclares io. Takes elements until the predicate holds for the current element. |
| public Q | takeWhile(Predicate<? super T>
A condition tested subsequently for the contained elements. predicate)Implements io. Takes elements while the predicate holds for the current element. |
| public String | toString()
Overrides java. Implements io. Clarifies that values have a proper toString() method implemented. |
| AbstractQueue | back to summary |
|---|---|
| pack-priv AbstractQueue() | |
| dequeue | back to summary |
|---|---|
| public Tuple2 Removes an element from this Queue.
| |
| dequeueOption | back to summary |
|---|---|
| public Option Removes an element from this Queue. | |
| dropUntil | back to summary |
|---|---|
| public Q dropUntil(Predicate<? super T> predicate) Implements io. Doc from io. Drops elements until the predicate holds for the current element. | |
| dropWhile | back to summary |
|---|---|
| public abstract Q dropWhile(Predicate<? super T> predicate) Redeclares io. Doc from io. Drops elements while the predicate holds for the current element. Note This is essentially the same as | |
| enqueue | back to summary |
|---|---|
| public abstract Q enqueue(T element) Enqueues a new element.
| |
| enqueue | back to summary |
|---|---|
| public Q enqueue(T... elements) Enqueues the given elements. A queue has FIFO order, i.e. the first of the given elements is the first which will be retrieved.
| |
| enqueueAll | back to summary |
|---|---|
| public abstract Q enqueueAll(Iterable<? extends T> elements) Enqueues the given elements. A queue has FIFO order, i.e. the first of the given elements is the first which will be retrieved.
| |
| init | back to summary |
|---|---|
| public abstract Q init() Redeclares io. Dual of tail(), returning all elements except the last.
| |
| initOption | back to summary |
|---|---|
| public Option Overrides default io. Dual of tailOption(), returning all elements except the last as | |
| peek | back to summary |
|---|---|
| public T peek() Returns the first element without modifying it.
| |
| peek | back to summary |
|---|---|
| public Q peek(Consumer<? super T> action) Implements io. Doc from io. Performs the given
| |
| peekOption | back to summary |
|---|---|
| public Option Returns the first element without modifying the Queue.
| |
| reject | back to summary |
|---|---|
| public Q reject(Predicate<? super T> predicate) Overrides default io. Doc from io. Returns a new traversable consisting of all elements which do not satisfy the given predicate. The default implementation is equivalent to
| |
| removeAll | back to summary |
|---|---|
public Q removeAll(Iterable<? extends T> elements)
| |
| removeAll | back to summary |
|---|---|
| public Q removeAll(Predicate<? super T> predicate)
Deprecated
| |
| retainAll | back to summary |
|---|---|
| public Q retainAll(Iterable<? extends T> elements) Implements io. Doc from io. Keeps all occurrences of the given elements from this.
| |
| tail | back to summary |
|---|---|
| public abstract Q tail() Redeclares io. Drops the first element of a non-empty Traversable.
| |
| tailOption | back to summary |
|---|---|
| public Option Implements io. Doc from io. Drops the first element of a non-empty Traversable and returns an | |
| takeUntil | back to summary |
|---|---|
| public abstract Q takeUntil(Predicate<? super T> predicate) Redeclares io. Doc from io. Takes elements until the predicate holds for the current element. Note This is essentially the same as | |
| takeWhile | back to summary |
|---|---|
| public Q takeWhile(Predicate<? super T> predicate) Implements io. Doc from io. Takes elements while the predicate holds for the current element. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Implements io. Doc from io. Clarifies that values have a proper toString() method implemented. See Object.toString(). | |