|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jpop.util.PopListUtils
Contains methods to perform useful operations on pop lists
| Field Summary | |
static char |
LIST_END_CHAR
Poplog list delimiters |
static char |
LIST_START_CHAR
Poplog list delimiters |
| Constructor Summary | |
PopListUtils()
|
|
| Method Summary | |
static void |
main(java.lang.String[] args)
The main program for the PopListUtils class |
static void |
parsePopList(java.lang.String poplist,
java.util.List list)
Takes a String representing a poplog list and adds it as a linked list to the list provided. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final char LIST_START_CHAR
public static final char LIST_END_CHAR
| Constructor Detail |
public PopListUtils()
| Method Detail |
public static void parsePopList(java.lang.String poplist,
java.util.List list)
String s = [a long and winding [pop11 list [with nested stuff] just to check [that] it] works]; LinkedList ll = new LinkedList(); parsePopList(s, ll); System.out.println(ll);will print:
[[a, long, and, winding, [pop11, list, [with, nested, stuff],
just, to, check, [that], it], works]]String s = "long and winding [pop11 list [with nested stuff] just to check [that] it] works"; LinkedList ll = new LinkedList(); parsePopList(s, ll); System.out.println(ll);will print:
[long, and, winding, [pop11, list, [with, nested, stuff], just, to,
check, [that], it], works]
poplist - The list to convertlist - A linked list that will contain the items of the Stringpublic static void main(java.lang.String[] args)
PopListUtils class
args - The command line arguments
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||