|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectPacketQueue
public class PacketQueue
A PacketQueue holds a sequence of Packet objects and provides access to them in the order that they were added to the sequence.
Constructor Summary | |
---|---|
PacketQueue()
new PacketQueue() returns a new, empty queue for Packets. |
Method Summary | |
---|---|
void |
add(Packet i)
q.add(i) adds i to q. |
Packet |
get()
q.get() returns the current item of q. |
int |
getCount()
q.getCount() the number of items in q. |
void |
remove()
q.remove() removes the current item of q. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PacketQueue()
Method Detail |
---|
public int getCount()
public void add(Packet i)
public Packet get()
Precondition: q.getCount() > 0.
public void remove()
Precondition: q.getCount() > 0.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |