|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
public Dict copy()
public boolean containsKey(java.lang.Object key)
key
- the key to search.
public java.lang.Object get(java.lang.Object key)
Map
get
in interface Map
key
- the key.
public boolean isEmpty()
Sizeable
isEmpty
in interface Sizeable
public java.lang.Object[] keys()
public java.lang.Object[] values()
public java.lang.Object[] keys(java.lang.Object[] buf)
public java.lang.Object[] values(java.lang.Object[] buf)
public java.util.Map.Entry[] entries()
public Dict put(java.lang.Object key, java.lang.Object val)
key
- the key.val
- the new value.
public Dict remove(java.lang.Object key)
key
- the key.
public Dict puts(java.lang.Object[] keys, java.lang.Object[] vals)
keys
- the keys.vals
- the values.
public Dict removes(java.lang.Object[] keys)
keys
- the keys.
public int size()
Sizeable
size
in interface Sizeable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |