|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Dict
An immutable associative array. All updates to a Dict should be functional. i.e. They create a new Dict object without changing the state of the existing one.
Zephyr Business Solutions Corp.s.
| Method Summary | |
|---|---|
boolean |
containsKey(java.lang.Object key)
Determines if the Dict object contains a value of a certain key. |
Dict |
copy()
Create a copy of the Dict object. |
java.util.Map.Entry[] |
entries()
Get the entries of the Dict object and store them into the array passed in as argument. |
java.lang.Object |
get(java.lang.Object key)
Get the corresponding value of a key. |
boolean |
isEmpty()
Tests whether it is empty. |
java.lang.Object[] |
keys()
Get the keys of the Dict object in an array. |
java.lang.Object[] |
keys(java.lang.Object[] buf)
Get the keys of the Dict object and store them into the array passed in as argument. |
Dict |
put(java.lang.Object key,
java.lang.Object val)
Functional update. |
Dict |
puts(java.lang.Object[] keys,
java.lang.Object[] vals)
Functional update. |
Dict |
remove(java.lang.Object key)
Functional update. |
Dict |
removes(java.lang.Object[] keys)
Functional update. |
int |
size()
Get the size. |
java.lang.Object[] |
values()
Get the values of the Dict object in an array. |
java.lang.Object[] |
values(java.lang.Object[] buf)
Get the values of the Dict object and store them into the array passed in as argument. |
| Method Detail |
|---|
Dict copy()
boolean containsKey(java.lang.Object key)
key - the key to search.
java.lang.Object get(java.lang.Object key)
Map
get in interface Mapkey - the key.
boolean isEmpty()
Sizeable
isEmpty in interface Sizeablejava.lang.Object[] keys()
java.lang.Object[] values()
java.lang.Object[] keys(java.lang.Object[] buf)
java.lang.Object[] values(java.lang.Object[] buf)
java.util.Map.Entry[] entries()
Dict put(java.lang.Object key,
java.lang.Object val)
key - the key.val - the new value.
Dict remove(java.lang.Object key)
key - the key.
Dict puts(java.lang.Object[] keys,
java.lang.Object[] vals)
keys - the keys.vals - the values.
Dict removes(java.lang.Object[] keys)
keys - the keys.
int size()
Sizeable
size in interface Sizeable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||