Class DoubleDatatype
java.lang.Object
io.jmix.core.metamodel.datatype.impl.NumberDatatype
io.jmix.core.metamodel.datatype.impl.DoubleDatatype
- All Implemented Interfaces:
Datatype<Double>
,ParameterizedDatatype
-
Field Summary
Fields inherited from class io.jmix.core.metamodel.datatype.impl.NumberDatatype
decimalSeparator, formatPattern, groupingSeparator
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected NumberFormat
Creates non-localized format.Converts value to String.Converts value to String taking into account local formats.protected boolean
isInDoubleRange
(BigDecimal result) Parses value from Stringprotected Number
parse
(String value, NumberFormat format) Parses value from String taking into account local formatstoString()
Methods inherited from class io.jmix.core.metamodel.datatype.impl.NumberDatatype
getParameters
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.jmix.core.metamodel.datatype.Datatype
getId, getJavaClass
-
Field Details
-
formatStringsRegistry
-
coreProperties
-
-
Constructor Details
-
DoubleDatatype
public DoubleDatatype()
-
-
Method Details
-
format
Description copied from interface:Datatype
Converts value to String. Returns an empty string for null value. -
format
Description copied from interface:Datatype
Converts value to String taking into account local formats. Returns an empty string for null value. -
parse
Description copied from interface:Datatype
Parses value from String- Specified by:
parse
in interfaceDatatype<Double>
- Throws:
ParseException
-
parse
Description copied from interface:Datatype
Parses value from String taking into account local formats- Specified by:
parse
in interfaceDatatype<Double>
- Throws:
ParseException
-
parse
- Overrides:
parse
in classNumberDatatype
- Throws:
ParseException
-
createFormat
Description copied from class:NumberDatatype
Creates non-localized format.- Overrides:
createFormat
in classNumberDatatype
-
isInDoubleRange
-
toString
-