T - type of object inside collectionpublic class CollectionModel<T> extends GenericCollectionModel<Collection<T>>
Model but for any collections of serializable objects.| Constructor and Description |
|---|
CollectionModel(Collection<T> collection)
Creates model that will contain
collection. |
| Modifier and Type | Method and Description |
|---|---|
protected Collection<T> |
newSerializableCollectionOf(Collection<T> object)
Creates a serializable version of the object.
|
static <C> de.alpharogroup.model.api.Model<Collection<C>> |
of(Collection<C> collection)
Factory method for models that contain collections.
|
setObjectattach, detach, getObjectClass, ofCollection, ofList, ofMap, ofSetpublic CollectionModel(Collection<T> collection)
collection.collection - the collectionpublic static <C> de.alpharogroup.model.api.Model<Collection<C>> of(Collection<C> collection)
collection into a serializable ArrayList.C - model typecollection - The Collection, which may or may not be Serializableprotected Collection<T> newSerializableCollectionOf(Collection<T> object)
newSerializableCollectionOf in class GenericCollectionModel<Collection<T>>object - the objectobjectCopyright © 2015–2017 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.