Package com.google.code.yanf4j.util
Class SimpleQueue<T>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractQueue<T>
-
- com.google.code.yanf4j.util.SimpleQueue<T>
-
- All Implemented Interfaces:
java.lang.Iterable<T>
,java.util.Collection<T>
,java.util.Queue<T>
public class SimpleQueue<T> extends java.util.AbstractQueue<T>
Simple queue. All methods are thread-safe.
-
-
Constructor Summary
Constructors Constructor Description SimpleQueue()
SimpleQueue(int initializeCapacity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Iterator<T>
iterator()
boolean
offer(T e)
T
peek()
T
poll()
int
size()
-
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
-
-