Key - Value - public interface InitMap<Key,Value> extends StringDictionary<Value>, ConvertsValue<Key,Value>, Iterable<Map.Entry<String,Value>>
AbstractInitMap will accept a key converter, which will work,
and allow reuse of code and singleton sharing,
but will be slower than if you extends an existing StringDictionaryPASS_THRU| Modifier and Type | Method and Description |
|---|---|
boolean |
containsKey(Key key) |
Value |
get(Key key) |
Value |
initialize(Key key) |
Value |
put(Key key,
Value value) |
String |
toKey(Key key)
We force subclasses to deal with serializing keys to unique names,
so javascript can implement this directly on an object,
and you can achieve a degree of portability,
by making map structure deterministic.
|
clearValues, forKeys, getValue, hasKey, removeValue, setValueconvertforEach, iterator, spliteratorValue initialize(Key key)
key - - The Key used when value was null.String toKey(Key key)
boolean containsKey(Key key)
Copyright © December 07, 2012–2015 The Internet Party. All rights reserved.