public static interface MDecimalString.Builder extends MString.AbstractBuilder<MDecimalString,MDecimalString.Builder>
Such a builder may be created using
MetadataFactory.decimalBuilder(String)
.
Modifier and Type | Method and Description |
---|---|
MDecimalString.Builder |
defaultValue(BigDecimal value)
Sets a default value that required occurrences of the field are to be
initialized to.
|
MDecimalString.Builder |
defaultValue(double value)
Deprecated.
since 5.7 - do not use this method as double
representation is not precise. Use
MString.AbstractBuilder.defaultValue(String) instead. |
MDecimalString.Builder |
scale(int scale)
Sets the scale of the field.
|
allowsEmpty, defaultValue
build, name
MDecimalString.Builder scale(int scale)
The scale is the number of digits to the right of the decimal point.
When not explicitly set a value of 2 is assumed.
scale
- the scale of the decimal number@Deprecated MDecimalString.Builder defaultValue(double value)
MString.AbstractBuilder.defaultValue(String)
instead.value
- an initial valueMDecimalString.Builder defaultValue(BigDecimal value) throws IllegalArgumentException
value
- an initial valueIllegalArgumentException
- if value
is nullCopyright © 2016 Push Technology Ltd. All Rights Reserved.