public class VaQueue
extends java.lang.Object
| Constructor and Description |
|---|
VaQueue() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(VaNode node)
Adds to the tail of the queue.
|
VaNode |
peek()
Returns but does not remove the head of the queue.
|
VaNode |
poll()
Removes and returns the head of the queue.
|
boolean |
remove(VaNode node)
Removes a node from the queue.
|
int |
size()
Returns the size of the queue.
|
public void add(VaNode node)
node - the node to addpublic VaNode poll()
public VaNode peek()
public boolean remove(VaNode node)
node - the node to removepublic int size()
Copyright @ 2019 Thomson Reuters. All Rights Reserved.