org.eclipse.net4j.util.container.delegate
Class ContainerQueue<E>

java.lang.Object
  extended by org.eclipse.net4j.util.event.Notifier
      extended by org.eclipse.net4j.util.container.delegate.AbstractDelegator<E>
          extended by org.eclipse.net4j.util.container.delegate.ContainerCollection<E>
              extended by org.eclipse.net4j.util.container.delegate.ContainerQueue<E>
All Implemented Interfaces:
java.lang.Iterable<E>, java.util.Collection<E>, java.util.Queue<E>, IContainerCollection<E>, IContainerQueue<E>, IContainer<E>, INotifier, INotifier.Introspection
Direct Known Subclasses:
ContainerBlockingQueue

public class ContainerQueue<E>
extends ContainerCollection<E>
implements IContainerQueue<E>


Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.net4j.util.container.delegate.AbstractDelegator
AbstractDelegator.DelegatingIterator
 
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.event.INotifier
INotifier.Introspection
 
Constructor Summary
ContainerQueue(java.util.Queue<E> delegate)
           
 
Method Summary
 E element()
           
 java.util.Queue<E> getDelegate()
           
 boolean offer(E o)
           
 E peek()
           
 E poll()
           
 E remove()
           
 
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 class org.eclipse.net4j.util.container.delegate.AbstractDelegator
createEvent, dispatchEvent, fireAddedEvent, fireRemovedEvent
 
Methods inherited from class org.eclipse.net4j.util.event.Notifier
addListener, fireEvent, getListeners, hasListeners, removeListener
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.net4j.util.container.IContainer
getElements, isEmpty
 
Methods inherited from interface org.eclipse.net4j.util.event.INotifier
addListener, removeListener
 
Methods inherited from interface java.util.Collection
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 
Methods inherited from interface java.util.Collection
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 

Constructor Detail

ContainerQueue

public ContainerQueue(java.util.Queue<E> delegate)
Method Detail

getDelegate

public java.util.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 java.util.Queue<E>

offer

public boolean offer(E o)
Specified by:
offer in interface java.util.Queue<E>

peek

public E peek()
Specified by:
peek in interface java.util.Queue<E>

poll

public E poll()
Specified by:
poll in interface java.util.Queue<E>

remove

public E remove()
Specified by:
remove in interface java.util.Queue<E>

Copyright (c) 2004 - 2008 Eike Stepper, Germany.
All Rights Reserved.