Key - Value - public interface InitMap<Key,Value> extends xapi.collect.api.StringDictionary<Value>, xapi.util.api.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 StringDictionary| 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, setValueforEach, iterator, spliteratorValue initialize(Key key)
key - - The Key used when value was null.String toKey(Key key)
key - - A key of whatever type you want. Use Pair or Triple to overload.boolean containsKey(Key key)
Copyright © December 07, 2012–2015 The Internet Party. All rights reserved.