| Modifier and Type | Method and Description |
|---|---|
void |
UidKeyTranslator.addToDictionary(Map<Uid,T> map)
Adds a UID-key map to the dictionary.
|
T |
UidKeyTranslator.fromUid(Uid uid)
Returns the key that is mapped to this unique id.
|
Map<T,?> |
UidKeyTranslator.fromUidMap(Map<Uid,?> map)
Accepts a map of unique ids to values and returns a new map which replaces the unique ids
with the keys from the dictionary.
|
Uid |
UidKeyTranslator.toUid(T key)
Returns the unique id that is mapped to this key.
|
Map<Uid,?> |
UidKeyTranslator.toUidMap(Map<T,Object> map)
Accepts a map of keys to values and returns a new map which replaces the keys with the unique
ids from the dictionary.
|
| Constructor and Description |
|---|
UidKeyTranslator(Map<Uid,T> map)
Creates a new instance, calling
UidKeyTranslator.addToDictionary(Map) for the provided map. |
Copyright © 2015 Cooking Fox. All rights reserved.