Class SimpleQueue<T>
java.lang.Object
java.util.AbstractCollection<T>
java.util.AbstractQueue<T>
com.google.code.yanf4j.util.SimpleQueue<T>
- All Implemented Interfaces:
Iterable<T>, Collection<T>, Queue<T>
Simple queue. All methods are thread-safe.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class AbstractCollection
contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Collection
contains, containsAll, equals, hashCode, isEmpty, parallelStream, remove, removeAll, removeIf, retainAll, spliterator, stream, toArray, toArray, toArray
-
Field Details
-
list
-
-
Constructor Details
-
SimpleQueue
public SimpleQueue(int initializeCapacity) -
SimpleQueue
public SimpleQueue()
-
-
Method Details
-
offer
-
peek
-
poll
-
iterator
-
size
public int size()- Specified by:
sizein interfaceCollection<T>- Specified by:
sizein classAbstractCollection<T>
-