T - the generic typepublic class SerializableModel<T extends Serializable> extends GenericModel<T>
SerializableModel contains only model object that implements the
Serializable interface.| Constructor and Description |
|---|
SerializableModel(T object) |
| Modifier and Type | Method and Description |
|---|---|
static <C> de.alpharogroup.model.api.Model<Collection<C>> |
of(Collection<C> collection)
Factory method for models that contain collections.
|
static <T> de.alpharogroup.model.api.Model<T> |
of(de.alpharogroup.model.api.Model<?> model)
Supresses generics warning when converting model types.
|
static <T extends Serializable> |
of(T object)
Factory methods for Model which uses type inference to make code shorter.
|
static <C> de.alpharogroup.model.api.Model<List<C>> |
ofList(List<C> list)
Factory method for models that contain lists.
|
static <K,V> de.alpharogroup.model.api.Model<Map<K,V>> |
ofMap(Map<K,V> map)
Factory method for models that contain maps.
|
static <T extends Serializable> |
ofModel()
Factory methods for Model which uses type inference to make code shorter.
|
static <C> de.alpharogroup.model.api.Model<Set<C>> |
ofSet(Set<C> set)
Factory method for models that contain sets.
|
void |
setObject(T object)
Set the model object; calls setObject(java.io.Serializable).
|
attach, detach, getObjectClass, ofpublic SerializableModel(T object)
public static <C> de.alpharogroup.model.api.Model<List<C>> ofList(List<C> list)
list into a serializable one.C - model typelist - The List, which may or may not be Serializablepublic 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 Serializablepublic static <C> de.alpharogroup.model.api.Model<Set<C>> ofSet(Set<C> set)
set into a serializable one.C - model typeset - The Set, which may or may not be Serializablepublic 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 Serializablepublic static <T extends Serializable> de.alpharogroup.model.api.Model<T> of(T object)
new Model<TypeOfObject>(object).T - the generic typeobject - the objectobjectpublic static <T> de.alpharogroup.model.api.Model<T> of(de.alpharogroup.model.api.Model<?> model)
T - the generic typemodel - the modelmodelpublic static <T extends Serializable> de.alpharogroup.model.api.Model<T> ofModel()
new SerializableModel<TypeOfObject>().T - the generic typeobjectpublic void setObject(T object)
object - the model objectCopyright © 2015–2017 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.