K - map's key typeV - map's value typepublic class MapModel<K,V> extends GenericCollectionModel<Map<K,V>>
Model but for maps of serializable objects.| Constructor and Description |
|---|
MapModel(Map<K,V> map)
Creates model that will contain
map. |
| Modifier and Type | Method and Description |
|---|---|
protected Map<K,V> |
newSerializableCollectionOf(Map<K,V> object)
Creates a serializable version of the object.
|
static <K,V> de.alpharogroup.model.api.Model<Map<K,V>> |
ofMap(Map<K,V> map)
Factory method for models that contain maps.
|
setObjectattach, detach, getObjectClass, ofCollection, ofList, ofSetpublic static <K,V> de.alpharogroup.model.api.Model<Map<K,V>> ofMap(Map<K,V> map)
map into a serializable one.K - key type in mapV - value type in mapmap - The Map, which may or may not be Serializableprotected Map<K,V> newSerializableCollectionOf(Map<K,V> object)
newSerializableCollectionOf in class GenericCollectionModel<Map<K,V>>object - the objectobjectCopyright © 2015–2017 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.