sunlabs.brazil.sunlabs
public static class ListTemplate.MyList extends Dictionary implements PropertiesCacheManager.Saveable
Field Summary | |
---|---|
int | chunk |
int | chunksize |
int | overlap |
Constructor Summary | |
---|---|
MyList(String name)
Create a named list object. | |
MyList() |
Method Summary | |
---|---|
void | append(String s, String delim)
Append a list to the end of the named list |
int | chunks() |
void | clear()
Clear a list. |
void | delete(int i)
Remove an element by index. |
Enumeration | elements()
Return the actual list items. |
Object | get(Object k) |
void | insert(String s, String delim, int n)
Insert a list before position n. |
boolean | isEmpty() |
Enumeration | keys()
Return an enumeration of the "special" keys for this list. |
void | load(InputStream in)
load a properties representation of the object, then
create the object from it. |
void | max(int n)
Set the max list size. |
Object | put(Object key, Object value)
This is never used; It's required by the interface |
void | remove(String s, String delim)
Remove items from a list, by name. |
Object | remove(Object o)
We should never call this; it's required by the interface. |
void | save(OutputStream out, String header) |
void | setDelim(String delim)
Set the delimiter for returning ranges. |
int | size() |
void | sort() |
String | toString() |
void | unique()
Remove all non unique elements of the list.
|
Parameters: s The list to insert delim The list delimiter (null for a single item( n The position to insert before