|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoscript.util.SymbolMap
This utility class provides a more Hashtable-like interface to
SymbolTable
, which normally maps a symbol to a table index.
Threading note: this class is not synchronized, but is designed to save to read from multiple threads, while write from a single thread context (at a time).
SymbolTable
Constructor Summary | |
SymbolMap()
Class Constructor |
|
SymbolMap(SymbolTable table)
Class Constructor |
Method Summary | |
java.lang.Object |
get(int id)
Get a mapping |
java.util.Iterator |
keys()
Return an iterator of keys into the table. |
java.lang.Object |
put(int id,
java.lang.Object val)
Put a new mapping in the table |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SymbolMap()
public SymbolMap(SymbolTable table)
table
- the underlying table data structureMethod Detail |
public final java.lang.Object get(int id)
public final java.lang.Object put(int id, java.lang.Object val)
public java.util.Iterator keys()
Integer
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |