|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractQueue<T>
org.jnetpcap.util.HoldQueue<T,C>
T - the generic typeC - the generic typepublic class HoldQueue<T,C>
The Class HoldQueue.
| Nested Class Summary | |
|---|---|
static class |
HoldQueue.HoldHandle<C>
The Class HoldHandle. |
| Constructor Summary | |
|---|---|
protected |
HoldQueue(java.util.Queue<T> hidden,
java.util.Queue<T> exposed,
java.util.Comparator<T> comparator)
Instantiates a new hold queue. |
| Method Summary | |
|---|---|
java.util.Iterator<T> |
iterator()
Iterator. |
boolean |
offer(T o)
Offer. |
T |
peek()
Peek. |
T |
poll()
Poll. |
int |
size()
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.Queue |
|---|
add, element, remove |
| Methods inherited from interface java.util.Collection |
|---|
addAll, clear, contains, containsAll, equals, hashCode, isEmpty, remove, removeAll, retainAll, toArray, toArray |
| Constructor Detail |
|---|
protected HoldQueue(java.util.Queue<T> hidden,
java.util.Queue<T> exposed,
java.util.Comparator<T> comparator)
hidden - the hiddenexposed - the exposedcomparator - the comparator| Method Detail |
|---|
public java.util.Iterator<T> iterator()
iterator in interface java.lang.Iterable<T>iterator in interface java.util.Collection<T>iterator in class java.util.AbstractCollection<T>AbstractCollection.iterator()public int size()
size in interface java.util.Collection<T>size in class java.util.AbstractCollection<T>AbstractCollection.size()public boolean offer(T o)
offer in interface java.util.Queue<T>o - the o
Queue.offer(java.lang.Object)public T peek()
peek in interface java.util.Queue<T>Queue.peek()public T poll()
poll in interface java.util.Queue<T>Queue.poll()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||