Package is.codion.framework.json.domain
Interface EntityObjectMapper.JsonType<T>
- Type Parameters:
T- the value type
- Enclosing class:
EntityObjectMapper
public static sealed interface EntityObjectMapper.JsonType<T>
The type a value is serialized as and deserialized from, registered once and for all.
- See Also:
-
Method Details
-
set
Registers a generic type,new TypeReference<List<Track>>() {}, whose type arguments, unlike those of aClass, survive to the deserialization site.- Parameters:
type- the type- Throws:
IllegalStateException- in case a type has already been registered
-
set
- Parameters:
type- the type- Throws:
IllegalStateException- in case a type has already been registered
-
get
com.fasterxml.jackson.databind.JavaType get()- Returns:
- the registered type
- Throws:
IllegalStateException- in case no type has been registered
-