Package com.vaadin.flow.data.converter
Class IntegerToBigDecimalConverter
java.lang.Object
com.vaadin.flow.data.converter.IntegerToBigDecimalConverter
- All Implemented Interfaces:
Converter<Integer,
,BigDecimal> Serializable
A converter that converts from
Integer
to BigDecimal
and
back.- Since:
- 24.5
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertToModel
(Integer value, ValueContext context) Converts the given value from presentation type to model type.convertToPresentation
(BigDecimal value, ValueContext context) Converts the given value from model type to presentation type.
-
Constructor Details
-
IntegerToBigDecimalConverter
public IntegerToBigDecimalConverter()
-
-
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<Integer,
BigDecimal> - 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<Integer,
BigDecimal> - Parameters:
value
- The value to convert. Can be nullcontext
- The value context for the conversion.- Returns:
- The converted value compatible with the source type
-