|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--au.edu.swin.synergy.lib.BStringList
This is a string list class Designed to make life easy for managing a list of strings (No supprises there:)
Constructor Summary | |
BStringList()
Creates an empty string list |
|
BStringList(String param)
Parse the param string and create a string list Tokens are seperated by white space unless surrounded in "quotes" |
Method Summary | |
void |
add(String str)
Please complete the missing tags for add |
void |
assign(String str)
This accepts a string with \n which are used to seperate the lines in the stringlist |
void |
clear()
Please complete the missing tags for clear |
String |
get(int index)
Please complete the missing tags for get |
int |
getCount()
Please complete the missing tags for getCount |
BStringList |
getSubstringList(int beginIndex,
int endIndex)
This will return a new BStringList containing only the values in this string list between the indexes provided. |
void |
insert(int index,
String str)
Please complete the missing tags for insert |
void |
remove(int index)
Please complete the missing tags for remove |
void |
remove(String str)
|
void |
set(int index,
String str)
|
String |
toString()
Enumerates the contents of the Stringlist |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public BStringList()
public BStringList(String param)
Method Detail |
public String get(int index)
- public void set(int index, String str)
public int getCount()
- public void add(String str)
- public void remove(int index)
- public void remove(String str)
public BStringList getSubstringList(int beginIndex, int endIndex)
beginIndex
- Where to start inclusiveendIndex
- Where to end exclusivepublic void assign(String str)
public void clear()
- public void insert(int index, String str)
- public String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |