T - Tpublic abstract class AbstractUnimplementedQueue<T> extends Object implements Queue<T>
AbstractUnimplementedQueue provides a base class for implementing reactive operation fusion queues in a
framework agnostic way. RxJava and Reactor both have the concept of a "simple queue", which lacks most of the
complexity of java.util.Queue, however, these interfaces are not interoperable when writing shared code.
This class implements the unused (not "simple") parts java.util.Queue such that they throw
UnsupportedOperationException so that subclasses only have to implement the "simple" parts.
| Constructor and Description |
|---|
AbstractUnimplementedQueue() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(T t) |
boolean |
addAll(Collection<? extends T> c) |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
T |
element() |
Iterator<T> |
iterator() |
boolean |
offer(T t) |
boolean |
offer(T t,
T t1) |
T |
peek() |
T |
poll() |
T |
remove() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
int |
size() |
Object[] |
toArray() |
<T1> T1[] |
toArray(T1[] a) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclear, equals, hashCode, isEmpty, parallelStream, removeIf, spliterator, streampublic boolean contains(Object o)
contains in interface Collection<T>public Object[] toArray()
toArray in interface Collection<T>public <T1> T1[] toArray(T1[] a)
toArray in interface Collection<T>public boolean add(T t)
public boolean remove(Object o)
remove in interface Collection<T>public boolean containsAll(Collection<?> c)
containsAll in interface Collection<T>public boolean addAll(Collection<? extends T> c)
addAll in interface Collection<T>public boolean removeAll(Collection<?> c)
removeAll in interface Collection<T>public boolean retainAll(Collection<?> c)
retainAll in interface Collection<T>public int size()
size in interface Collection<T>Copyright © 2021. All rights reserved.