T - The type of the serialized form.public interface TypeSerializer<T>
SerializableType schemas.| Modifier and Type | Method and Description |
|---|---|
void |
serialize(BooleanSerializableType type,
T target)
Serializes a boolean schema to the target.
|
void |
serialize(DecimalSerializableType type,
T target)
Serializes a numeric range schema to the target.
|
void |
serialize(EnumSerializableType type,
T target)
Serializes a fixed value schema to the target.
|
void |
serialize(ListSerializableType<?> type,
T target)
Serializes a list schema to the target.
|
void |
serialize(MapSerializableType<?> type,
T target)
Serializes a map schema to the target.
|
void |
serialize(RecordSerializableType type,
T target)
Serializes a record schema to the target.
|
void |
serialize(StringSerializableType type,
T target)
Serializes a regex-defined string schema to the target.
|
default void |
serializeType(SerializableType<?> type,
T target)
Serializes the given
SerializableType to the target. |
void serialize(BooleanSerializableType type, T target)
void serialize(DecimalSerializableType type, T target)
void serialize(EnumSerializableType type, T target)
void serialize(ListSerializableType<?> type, T target)
void serialize(MapSerializableType<?> type, T target)
void serialize(RecordSerializableType type, T target)
void serialize(StringSerializableType type, T target)
default void serializeType(SerializableType<?> type, T target)
SerializableType to the target.
This method polymorphically dispatches over the other methods of this type.