| st.ata.util.AList
AList | public interface AList (Code) | | Map from string keys to values. The mapping is "strongly types",
e.g., a value saved as an "int" cannot be retrieved as a "long" or
a "string". Throws
ClassCastException if a type error
occurs,
java.util.NoSuchElementException if the key is not
in the table.
|
Method Summary | |
public void | clear() | public Object | clone() | public void | close() Closes the object and releases any resources
(for example, InputStreams) held by it. | public boolean | containsKey(String key) | public void | copyKeysFrom(Iterator keys, AList other) Copy the iterator's keys from one AList to another. | public AList | getAList(String key) | public AList[] | getAListArray(String key) | public Date | getDate(String key) | public Date[] | getDateArray(String key) | public InputStream | getInputStream(String key) | public InputStream[] | getInputStreamArray(String key) | public int | getInt(String key) | public int[] | getIntArray(String key) | public String[] | getKeyArray() | public Iterator | getKeys() | public long | getLong(String key) | public long[] | getLongArray(String key) | public Object | getObject(String key) | public String | getString(String key) | public String[] | getStringArray(String key) | public String[][] | getStringArrayArray(String key) | public int | getType(String key) Return the type of the value associated with a key. | public AList | newAList() | public void | putAList(String key, AList value) | public void | putAListArray(String key, AList[] value) | public void | putDate(String key, Date value) | public void | putDateArray(String key, Date[] value) | public void | putInputStream(String key, InputStream value) | public void | putInputStreamArray(String key, InputStream[] value) | public void | putInt(String key, int value) | public void | putIntArray(String key, int[] value) | public void | putLong(String key, long value) | public void | putLongArray(String key, long[] value) | public void | putObject(String key, Object val) | public void | putString(String key, String value) | public void | putStringArray(String key, String[] value) | public void | putStringArrayArray(String key, String[][] value) | public void | remove(String key) | public String | toPrettyString() Provides a somewhat pretty (matching brackets for nesting)
string of AList. |
F_ARRAY | final public static int F_ARRAY(Code) | | |
F_ARRAY_ARRAY | final public static int F_ARRAY_ARRAY(Code) | | |
T_ALIST | final public static int T_ALIST(Code) | | |
T_DATE | final public static int T_DATE(Code) | | |
T_INPUTSTREAM | final public static int T_INPUTSTREAM(Code) | | |
T_INT | final public static int T_INT(Code) | | |
T_LONG | final public static int T_LONG(Code) | | |
T_OBJECT | final public static int T_OBJECT(Code) | | |
T_STRING | final public static int T_STRING(Code) | | |
T_UNDEFINED | final public static int T_UNDEFINED(Code) | | |
clear | public void clear()(Code) | | |
close | public void close()(Code) | | Closes the object and releases any resources
(for example, InputStreams) held by it.
|
copyKeysFrom | public void copyKeysFrom(Iterator keys, AList other)(Code) | | Copy the iterator's keys from one AList to another.
Parameters: keys - Iterator of String keys Parameters: other - source AList |
getKeyArray | public String[] getKeyArray()(Code) | | Returns an array of
String containing all keys in
this list
|
getKeys | public Iterator getKeys()(Code) | | Returns an iterator of
String containing all keys in
this list
|
putIntArray | public void putIntArray(String key, int[] value)(Code) | | |
putLongArray | public void putLongArray(String key, long[] value)(Code) | | |
toPrettyString | public String toPrettyString()(Code) | | Provides a somewhat pretty (matching brackets for nesting)
string of AList.
pretty String |
|
|