org.eclipse.net4j.util.container.delegate
Class ContainerQueue<E>
java.lang.Object
org.eclipse.net4j.util.event.Notifier
org.eclipse.net4j.util.container.delegate.AbstractDelegator<E>
org.eclipse.net4j.util.container.delegate.ContainerCollection<E>
org.eclipse.net4j.util.container.delegate.ContainerQueue<E>
- All Implemented Interfaces:
- Iterable<E>, Collection<E>, Queue<E>, IContainerCollection<E>, IContainerQueue<E>, IContainer<E>, INotifier
- Direct Known Subclasses:
- ContainerBlockingQueue
public class ContainerQueue<E>
- extends ContainerCollection<E>
- implements IContainerQueue<E>
Methods inherited from class org.eclipse.net4j.util.container.delegate.ContainerCollection |
add, addAll, clear, contains, containsAll, equals, getElements, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
Methods inherited from interface java.util.Queue |
add |
Methods inherited from interface java.util.Collection |
addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
ContainerQueue
public ContainerQueue(Queue<E> delegate)
getDelegate
public Queue<E> getDelegate()
- Specified by:
getDelegate
in interface IContainerCollection<E>
- Specified by:
getDelegate
in interface IContainerQueue<E>
- Overrides:
getDelegate
in class ContainerCollection<E>
element
public E element()
- Specified by:
element
in interface Queue<E>
- Category
- READ
offer
public boolean offer(E o)
- Specified by:
offer
in interface Queue<E>
- Category
- WRITE
peek
public E peek()
- Specified by:
peek
in interface Queue<E>
- Category
- READ
poll
public E poll()
- Specified by:
poll
in interface Queue<E>
- Category
- WRITE
remove
public E remove()
- Specified by:
remove
in interface Queue<E>
- Category
- WRITE
Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others.