com.vaadin.flow.templatemodel.
Interface ModelEncoder<D,E extends Serializable>
-
Type Parameters:
D
- the decoded typeE
- the encoded typeAll Superinterfaces:
Deprecated.
This functionality is bound to template model which is not supported for lit template. You can use@Id
mapping and the component API or the element API with property synchronization instead. Polymer template support is deprecated - we recommend you to useLitTemplate
instead. Read more details from the Vaadin blog.
@Deprecated public interface ModelEncoder<D,E extends Serializable> extends Serializable
Template models encoder. Used for enabling the use of types in template model methods that are not natively supported by the framework.
Since:
1.0
Author:
Vaadin Ltd
See Also:
-
-
Method Summary
All Methods Modifier and Type Method and Description D
decode(E value)
Deprecated.
Decodes the given value.
E
encode(D value)
Deprecated.
Encodes the given value.
default Class<D>
getDecodedType()
Deprecated.
Get the decoded type of this encoder.
default Class<E>
getEncodedType()
Deprecated.
Get the encoded type of this encoder.
-
-
-
Method Detail
-
getDecodedType
default Class<D> getDecodedType()
Deprecated.
Get the decoded type of this encoder.
Returns:
the application type
-
getEncodedType
default Class<E> getEncodedType()
Deprecated.
Get the encoded type of this encoder.
Returns:
the model type
-
encode
E encode(D value)
Deprecated.
Encodes the given value.
Parameters:
value
- the value to encodeReturns:
the encoded model value
-
-