Liferay 7.0-ce-b4

com.liferay.portal.kernel.util
Class LimitedFIFOQueue<E>

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractQueue<E>
          extended by com.liferay.portal.kernel.util.LimitedFIFOQueue<E>
All Implemented Interfaces:
Iterable<E>, Collection<E>, Queue<E>

public class LimitedFIFOQueue<E>
extends AbstractQueue<E>


Constructor Summary
LimitedFIFOQueue(int capacity)
           
 
Method Summary
 Iterator<E> iterator()
           
 boolean offer(E e)
           
 E peek()
           
 E poll()
           
 int size()
           
 
Methods inherited from class java.util.AbstractQueue
add, addAll, clear, element, remove
 
Methods inherited from class java.util.AbstractCollection
contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Collection
contains, containsAll, equals, hashCode, isEmpty, remove, removeAll, retainAll, toArray, toArray
 

Constructor Detail

LimitedFIFOQueue

public LimitedFIFOQueue(int capacity)
Method Detail

iterator

public Iterator<E> iterator()
Specified by:
iterator in interface Iterable<E>
Specified by:
iterator in interface Collection<E>
Specified by:
iterator in class AbstractCollection<E>

offer

public boolean offer(E e)

peek

public E peek()

poll

public E poll()

size

public int size()
Specified by:
size in interface Collection<E>
Specified by:
size in class AbstractCollection<E>

Liferay 7.0-ce-b4