|
|||||||||
| Home >> All >> mobile >> [ protocol overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
mobile.protocol
Class FrameQueue

java.lang.Objectmobile.protocol.FrameQueue
- public class FrameQueue
- extends java.lang.Object
The FrameQueue class implements a queue of Frame objects. It provides the queue interface, which is not available in the MIDP.
| Field Summary | |
private Frame |
head
The head of the cyclic linked list containing the queue |
private int |
size
Number of frames contained in the queue |
| Constructor Summary | |
FrameQueue()
|
|
| Method Summary | |
void |
add(Frame newFrame)
Adds a new Frame at the end of the queue |
boolean |
empty()
Checks if the queue is empty |
Frame |
get()
Gets a Frame from the head of the queue but does not remove it from the queue |
void |
print()
Prints the ids of messages contained in this queue. |
Frame |
remove()
Gets a Frame from the head of the queue and removes it from the queue |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
head
private Frame head
The head of the cyclic linked list containing the queue
size
private int size
Number of frames contained in the queue
| Constructor Detail |
FrameQueue
public FrameQueue()
| Method Detail |
empty
public boolean empty()
Checks if the queue is empty
add
public void add(Frame newFrame)
Adds a new Frame at the end of the queue
get
public Frame get()
Gets a Frame from the head of the queue but does not remove it from the queue
remove
public Frame remove()
Gets a Frame from the head of the queue and removes it from the queue
public void print()
- Prints the ids of messages contained in this queue. Used for debugging.
|
|||||||||
| Home >> All >> mobile >> [ protocol overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
mobile.protocol.FrameQueue