com.sun.appserv.management.util.misc
Class StringifiedList
java.lang.Object
com.sun.appserv.management.util.misc.StringifiedList
public class StringifiedList
- extends Object
Maintain a list of Strings, ensuring that a String constructor may be
used to repopulate the list and that toString() generates a String appropriate
for such use.
NOTE: this should be improved so that items may contain the delimiter
Constructor Summary |
StringifiedList(String listString)
Create a new list with the delimiter DEFAULT_DELIM |
StringifiedList(String[] items,
char delim)
Create a new list with the specified delimiter |
StringifiedList(String listString,
char delim)
Create a new list with the specified delimiter, with contents taken from the
supplied String. |
DEFAULT_DELIM
public static final char DEFAULT_DELIM
- See Also:
- Constant Field Values
StringifiedList
public StringifiedList(String listString)
- Create a new list with the delimiter DEFAULT_DELIM
StringifiedList
public StringifiedList(String[] items,
char delim)
- Create a new list with the specified delimiter
StringifiedList
public StringifiedList(String listString,
char delim)
- Create a new list with the specified delimiter, with contents taken from the
supplied String.
- Parameters:
listString
- the string containing 0 or more items for the listdelim
- the delimiter between items
toString
public String toString()
- Overrides:
toString
in class Object
toArray
public String[] toArray()
exists
public boolean exists(String name)
iterator
public Iterator iterator()
prepend
public void prepend(String item)
append
public void append(String item)
remove
public void remove(String item)
Submit a bug or feature Copyright 2006 Sun Microsystems, Inc. All rights reserved.