D
- the decoded typeE
- the encoded typepublic interface ModelEncoder<D,E extends Serializable> extends Serializable
Encode
Modifier and Type | Method and Description |
---|---|
D |
decode(E value)
Decodes the given value.
|
E |
encode(D value)
Encodes the given value.
|
default Class<D> |
getDecodedType()
Get the decoded type of this encoder.
|
default Class<E> |
getEncodedType()
Get the encoded type of this encoder.
|
default Class<D> getDecodedType()
default Class<E> getEncodedType()
E encode(D value)
value
- the value to encodeCopyright © 2025. All rights reserved.