Package de.quantummaid.eventmaid.mapping
Class Deserializer
- java.lang.Object
-
- de.quantummaid.eventmaid.mapping.Deserializer
-
public final class Deserializer extends Object
TheDeserializertakes a targetClassand aMapto create a new object of the given class based on the data containedMap.- See Also:
- EventMaid Documentation
-
-
Constructor Summary
Constructors Constructor Description Deserializer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Tdeserialize(Class<T> type, Object map)Creates a new object of the givenClassfrom the data contained in theMap.static Deserializerdeserializer(FilterMap<Class<?>,Object,Demapifier<?>> requestMappers)Creates a newDeserializerfrom the givenFilterMap.
-
-
-
Method Detail
-
deserializer
public static Deserializer deserializer(FilterMap<Class<?>,Object,Demapifier<?>> requestMappers)
Creates a newDeserializerfrom the givenFilterMap.- Parameters:
requestMappers- theFilterMapto be used as deserializers- Returns:
- a new
Deserializer
-
deserialize
public <T> T deserialize(Class<T> type, Object map)
Creates a new object of the givenClassfrom the data contained in theMap.- Type Parameters:
T- the type of the object to be created- Parameters:
type- the type of the object to be createdmap- theMapcontaining necessary data- Returns:
- the newly created object
-
-