|
The Gravy Framework | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object
|
+--OObject
|
+--Map
This class encapsulates a Map of object/key pairs
and implements the Collection virtual interface
See:
| Constructor Summary | |
Map
()
|
|
| Method Summary | |
void
|
addItem(k,o)
add given object and associate with given key |
void
|
delItem( k )
delete item associated with given key |
Object
|
first()
return the first object in this map or null if empty |
Object
|
firstKey()
return the first key in this map or null if empty |
int
|
getCount( )
return how many items are in map |
Object
|
getItem( k )
return item associated with given key |
String
|
getItemStr( k )
return item as string associated with given key |
void
|
iterate( <Function> f )
iterate thru items in map calling specified function |
void
|
konstructor( <String> optName )
|
Object
|
next( k )
Return the object that comes AFTER the given key or, if no key specified, return the first object. |
Object
|
nextKey( k )
Return the key that comes after the given key. |
void
|
reset( )
reset map to empty |
| Constructor Detail |
Map()
| Method Detail |
void addItem(k,o)
void delItem( k )
Object first()
Object firstKey()
int getCount( )
Object getItem( k )
String getItemStr( k )
void iterate( <Function> f )
f - function that takes key and object as params and returns true if the iteration should be stopped before all items in map are processed.
void konstructor( <String> optName )
optName - optional name of this instance
Object next( k )
Object nextKey( k )
void reset( )
|
The Gravy Framework | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||