- public JS get(JS key) throws JSExn { int i = indexOf(key);
- return i < 0 ? null : entries[i + 1] instanceof Placeholder ? null : (JS)entries[i + 1]; }
- public void put(JS key, JS val) throws JSExn {
- // NOTE: only way value can be stored as null is using declare()
- int dest = put(indexOf(key), key);
- if (val == null) entries[dest + 1] = holder;
- else entries[dest + 1] = val; }
-
- /*public boolean hasValue(JS key, JS value) {
- int i = indexOf(key); return i >= 0 && entries[i + 1] != null; }
- public boolean hasTrap(JS key, JS trap) {
- int i = indexOf(key); return i >= 0 && entries[i + 2] != null; }*/