We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.flow.templatemodel.
Interface ModelEncoder<D,E extends Serializable>
-
Type Parameters:
D
- the decoded typeE
- the encoded typeAll Superinterfaces:
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 Detail
-
getDecodedType
default Class<D> getDecodedType()
Get the decoded type of this encoder.
Returns:
the application type
-
getEncodedType
default Class<E> getEncodedType()
Get the encoded type of this encoder.
Returns:
the model type
-
encode
E encode(D value)
Encodes the given value.
Parameters:
value
- the value to encodeReturns:
the encoded model value
-
-