Package dev.drtheo.autojson.adapter
Interface JsonDeserializationContext
-
- All Implemented Interfaces:
-
dev.drtheo.autojson.SchemaHolder,dev.drtheo.autojson.adapter.JsonContext
public interface JsonDeserializationContext implements JsonContext
-
-
Method Summary
Modifier and Type Method Description abstract <T> TdecodeBuiltIn(Class<T> type)Decodes the value in the current context. <T> Tdecode(Type type)Decodes the value in the current context. <T> Tdecode(Type type, Schema<T> schema)Decodes the value in the current context. <T> TdecodeCustom(Type type)Decodes a custom value in the current context. abstract <T> TdecodeCustom(Type type, @NotNull() Schema<T> schema)Decodes the value in the current context. -
Methods inherited from class dev.drtheo.autojson.adapter.JsonContext
auto, schema, schemaHolder -
Methods inherited from class dev.drtheo.autojson.SchemaHolder
schema -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
decodeBuiltIn
abstract <T> T decodeBuiltIn(Class<T> type)
Decodes the value in the current context.
- Returns:
The decoded built-in object.
-
decode
<T> T decode(Type type)
Decodes the value in the current context.
- Parameters:
type- the type of the object to decode.- Returns:
The decoded object.
-
decode
<T> T decode(Type type, Schema<T> schema)
Decodes the value in the current context.
- Parameters:
type- the type of the object to decode.- Returns:
The decoded object.
-
decodeCustom
<T> T decodeCustom(Type type)
Decodes a custom value in the current context.
- Parameters:
type- the type of the object to decode.- Returns:
The decoded object.
-
decodeCustom
abstract <T> T decodeCustom(Type type, @NotNull() Schema<T> schema)
Decodes the value in the current context.
- Parameters:
type- the type of the object to decode.schema- the schema used to decode the value.- Returns:
The decoded non-built-in object.
-
-
-
-