Package dev.drtheo.autojson.schema.util
Interface StringSchema
-
- All Implemented Interfaces:
-
dev.drtheo.autojson.schema.base.PrimitiveSchema,dev.drtheo.autojson.schema.base.Schema
public interface StringSchema<T> implements PrimitiveSchema<T>
-
-
Method Summary
Modifier and Type Method Description abstract <To> Stringserialize(JsonAdapter<Object, To> auto, T t)abstract <To> Tdeserialize(JsonAdapter<Object, To> auto, String s)<To> voidserialize(JsonAdapter<Object, To> auto, JsonSerializationContext.Primitive c, T t)<To> Tdeserialize(JsonAdapter<Object, To> adapter, JsonDeserializationContext ctx)-
Methods inherited from class dev.drtheo.autojson.schema.base.PrimitiveSchema
serialize, type -
Methods inherited from class dev.drtheo.autojson.schema.base.Schema
asArray, asObject, asPrimitive, asWrapper, createInstance -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
deserialize
abstract <To> T deserialize(JsonAdapter<Object, To> auto, String s)
-
serialize
<To> void serialize(JsonAdapter<Object, To> auto, JsonSerializationContext.Primitive c, T t)
- Parameters:
t- the object you're serializing.
-
deserialize
<To> T deserialize(JsonAdapter<Object, To> adapter, JsonDeserializationContext ctx)
- Parameters:
adapter- the adapter used to deserialize this object.ctx- the deserialization context.- Returns:
The deserialized object.
-
-
-
-