public static class ListTemplate.MyList extends java.util.Dictionary implements PropertiesCacheManager.Saveable
| Constructor and Description |
|---|
MyList() |
MyList(java.lang.String name)
Create a named list object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
append(java.lang.String s,
java.lang.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.
|
java.util.Enumeration |
elements()
Return the actual list items.
|
java.lang.Object |
get(java.lang.Object k) |
void |
insert(java.lang.String s,
java.lang.String delim,
int n)
Insert a list before position n.
|
boolean |
isEmpty()
The current object state is the "default"; "save" does not need to
write out any state.
|
java.util.Enumeration |
keys()
Return an enumeration of the "special" keys for this list.
|
void |
load(java.io.InputStream in)
load a properties representation of the object, then
create the object from it.
|
void |
max(int n)
Set the max list size.
|
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
This is never used; It's required by the interface
|
java.lang.Object |
remove(java.lang.Object o)
We should never call this; it's required by the interface.
|
void |
remove(java.lang.String s,
java.lang.String delim)
Remove items from a list, by name.
|
void |
save(java.io.OutputStream out,
java.lang.String header)
Create an ascii representation of this object in a Java Properties
format.
|
void |
setDelim(java.lang.String delim)
Set the delimiter for returning ranges.
|
int |
size() |
void |
sort() |
java.lang.String |
toString() |
void |
unique()
Remove all non unique elements of the list.
|
public MyList(java.lang.String name)
public MyList()
public int size()
size in class java.util.Dictionarypublic boolean isEmpty()
PropertiesCacheManager.SaveableisEmpty in interface PropertiesCacheManager.SaveableisEmpty in class java.util.Dictionarypublic void sort()
public void insert(java.lang.String s,
java.lang.String delim,
int n)
s - The list to insertdelim - The list delimiter (null for a single item(n - The position to insert beforepublic void append(java.lang.String s,
java.lang.String delim)
public void remove(java.lang.String s,
java.lang.String delim)
public java.lang.Object remove(java.lang.Object o)
remove in class java.util.Dictionarypublic void delete(int i)
public void clear()
public void max(int n)
public void unique()
public void setDelim(java.lang.String delim)
public java.util.Enumeration keys()
keys in class java.util.Dictionarypublic java.util.Enumeration elements()
elements in class java.util.Dictionarypublic java.lang.Object get(java.lang.Object k)
get in class java.util.Dictionarypublic java.lang.Object put(java.lang.Object key,
java.lang.Object value)
put in class java.util.Dictionarypublic java.lang.String toString()
toString in class java.lang.Objectpublic int chunks()
public void save(java.io.OutputStream out,
java.lang.String header)
throws java.io.IOException
PropertiesCacheManager.Saveablesave in interface PropertiesCacheManager.Saveablejava.io.IOExceptionpublic void load(java.io.InputStream in)
throws java.io.IOException
load in interface PropertiesCacheManager.Saveablejava.io.IOException