com.vaadin.flow.data.converter.
Class BigDecimalToLongConverter
All Implemented Interfaces:
A converter that converts from BigDecimal
to Long
and back.
See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertToModel
(BigDecimal value, ValueContext context) Converts the given value from presentation type to model type.
convertToPresentation
(Long value, ValueContext context) Converts the given value from model type to presentation type.
-
Constructor Details
-
BigDecimalToLongConverter
public BigDecimalToLongConverter()
-
-
Method Details
-
convertToModel
Description copied from interface:
Converter
Converts the given value from presentation type to model type.
A converter can optionally use locale to do the conversion.
Specified by:
convertToModel
in interfaceConverter<BigDecimal,
Long> Parameters:
value
- The value to convert. Can be nullcontext
- The value context for the conversion.Returns:
The converted value compatible with the source type
-
convertToPresentation
Description copied from interface:
Converter
Converts the given value from model type to presentation type.
A converter can optionally use locale to do the conversion.
Specified by:
convertToPresentation
in interfaceConverter<BigDecimal,
Long> Parameters:
value
- The value to convert. Can be nullcontext
- The value context for the conversion.Returns:
The converted value compatible with the source type
-