Class DecimalFormatter
- java.lang.Object
-
- coop.intergal.ui.utils.converters.DecimalFormatter
-
- All Implemented Interfaces:
com.vaadin.flow.templatemodel.ModelEncoder<BigInteger,String>,Serializable
public class DecimalFormatter extends Object implements com.vaadin.flow.templatemodel.ModelEncoder<BigInteger,String>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DecimalFormatter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BigIntegerdecode(String presentationValue)Stringencode(BigInteger modelValue)BigIntegergetCents(String col, int nDecimals)
-
-
-
Method Detail
-
encode
public String encode(BigInteger modelValue)
- Specified by:
encodein interfacecom.vaadin.flow.templatemodel.ModelEncoder<BigInteger,String>
-
decode
public BigInteger decode(String presentationValue)
- Specified by:
decodein interfacecom.vaadin.flow.templatemodel.ModelEncoder<BigInteger,String>
-
getCents
public BigInteger getCents(String col, int nDecimals)
-
-