|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.voytechs.jnetstream.codec.FlowList
public class FlowList
A special purpose container that contains a list of Flows. It has special search function and management capabilities that are flow related.
| Constructor Summary | |
|---|---|
FlowList()
|
|
| Method Summary | |
|---|---|
void |
add(Flow flow)
Adds a flow |
int |
find(FlowKey key)
Finds a flow with the given key |
Flow |
get(int index)
Returns the index flow from the list of active flows. |
void |
remove(Flow flow)
Removes a flow. |
int |
size()
Returns the number of flows in this list. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FlowList()
-
| Method Detail |
|---|
public void add(Flow flow)
flow - The flow to be added.public void remove(Flow flow)
flow - The flow to remove from list.public int find(FlowKey key)
public Flow get(int index)
index - Index of the flow to return. The index value can be
positive or nagative. Must a 1-based index, meaning the first entry
in the list is 1 not 0. Also index of 0 is an illegal value.
public int size()
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||