|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dishevelled.observable.AbstractQueueDecorator<E>
E - queue element typeabstract class AbstractQueueDecorator<E>
Abstract queue that decorates an instance of Queue.
| Constructor Summary | |
|---|---|
protected |
AbstractQueueDecorator(Queue<E> queue)
Create a new abstract queue that decorates the specified queue. |
| Method Summary | ||
|---|---|---|
boolean |
add(E e)
|
|
boolean |
addAll(Collection<? extends E> c)
|
|
void |
clear()
|
|
boolean |
contains(Object o)
|
|
boolean |
containsAll(Collection<?> c)
|
|
E |
element()
|
|
boolean |
equals(Object o)
|
|
protected Queue<E> |
getQueue()
Return a reference to the queue this decorator decorates. |
|
int |
hashCode()
|
|
boolean |
isEmpty()
|
|
Iterator<E> |
iterator()
|
|
boolean |
offer(E e)
|
|
E |
peek()
|
|
E |
poll()
|
|
E |
remove()
|
|
boolean |
remove(Object o)
|
|
boolean |
removeAll(Collection<?> c)
|
|
boolean |
retainAll(Collection<?> c)
|
|
int |
size()
|
|
Object[] |
toArray()
|
|
|
toArray(T[] a)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected AbstractQueueDecorator(Queue<E> queue)
queue - queue to decorate, must not be null| Method Detail |
|---|
protected final Queue<E> getQueue()
public E element()
element in interface Queue<E>public boolean offer(E e)
offer in interface Queue<E>public E peek()
peek in interface Queue<E>public E poll()
poll in interface Queue<E>public E remove()
remove in interface Queue<E>public boolean add(E e)
add in interface Collection<E>add in interface Queue<E>public boolean addAll(Collection<? extends E> c)
addAll in interface Collection<E>public void clear()
clear in interface Collection<E>public boolean contains(Object o)
contains in interface Collection<E>public boolean containsAll(Collection<?> c)
containsAll in interface Collection<E>public boolean equals(Object o)
equals in interface Collection<E>equals in class Objectpublic int hashCode()
hashCode in interface Collection<E>hashCode in class Objectpublic boolean isEmpty()
isEmpty in interface Collection<E>public Iterator<E> iterator()
iterator in interface Iterable<E>iterator in interface Collection<E>public boolean remove(Object o)
remove in interface Collection<E>public boolean removeAll(Collection<?> c)
removeAll in interface Collection<E>public boolean retainAll(Collection<?> c)
retainAll in interface Collection<E>public int size()
size in interface Collection<E>public Object[] toArray()
toArray in interface Collection<E>public <T> T[] toArray(T[] a)
toArray in interface Collection<E>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||