Modifier and Type | Field and Description |
---|---|
private int |
current
The actual item in this MessageVector object.
|
private int |
elementCount
The number of valid components in this MessageVector object.
|
private Message[] |
elementData
The array buffer into which the components of the vector are
stored.
|
Constructor and Description |
---|
NGNetwork.MessageVector()
Constructs an empty vector with the specified initial capacity and
capacity increment.
|
Modifier and Type | Method and Description |
---|---|
void |
addMessage(Message msg)
Adds the specified component to the end of this vector,
increasing its size by one.
|
Message |
nextMessage() |
void |
removeCurrent() |
Message |
removeMessage(int stamp)
Removes a message specified by its stamp.
|
void |
reset() |
int |
size()
Returns the number of message in this vector.
|
String |
toString() |
private Message[] elementData
Any array elements following the last element in the Vector are null.
private int elementCount
private int current
public NGNetwork.MessageVector()
public Message nextMessage()
public int size()
public void reset()
public void addMessage(Message msg)
msg
- the component to be added.public void removeCurrent()
public Message removeMessage(int stamp)
stamp
- the stamp of the message to remove.Copyright © 2013 ScalAgent D.T.. All Rights Reserved.