StringTable is a
MapCollection
using unique character string indexes.
The items of a StringTable can be any valid Rexx object.
MapCollection similar to StringTable,
but with additional methods setMethod and
unsetMethod.
| Object | ||||||||||||||||||||||
| Methods inherited from the Object class | ||||||||||||||||||||||
| Class (Metaclass) | ||||||||||||||||||||||
| Methods inherited from the Class class | ||||||||||||||||||||||
| + Collection (Mixin Class) | ||||||||||||||||||||||
| Methods inherited from the Collection class | ||||||||||||||||||||||
| + MapCollection (Mixin Class) | ||||||||||||||||||||||
| Methods inherited from the MapCollection class | ||||||||||||||||||||||
| StringTable | ||||||||||||||||||||||
|
put,
[]=, at, and
[] methods defined for
Collections, StringTable provides access to items using methods. For
example:
sTable = .StringTable~new
sTable~name = "Mike" -- same as sTable~put("Mike", "NAME")
say sTable~name -- same as say sTable["NAME"]
StringTable does not provide methods
setMethod and unsetMethod
as the Directory class does.