public final class DecimalOptionFieldAdapter extends NumericOptionFieldAdapter<DecimalOption>
FieldAdapter
which accepts DecimalOption
.Modifier and Type | Class and Description |
---|---|
static class |
DecimalOptionFieldAdapter.Builder
A builder of
DecimalOptionFieldAdapter . |
static class |
DecimalOptionFieldAdapter.OutputStyle
Represents an output style of
DecimalOption . |
NumericOptionFieldAdapter.NumericBuilderBase<S extends NumericOptionFieldAdapter.NumericBuilderBase<S,T>,T extends FieldAdapter<?>>
ValueOptionFieldAdapter.BuilderBase<S extends ValueOptionFieldAdapter.BuilderBase<S,T>,T extends FieldAdapter<?>>
Modifier and Type | Field and Description |
---|---|
static DecimalOptionFieldAdapter.OutputStyle |
DEFAULT_OUTPUT_STYLE
The default
DecimalOptionFieldAdapter.OutputStyle . |
DEFAULT_NULL_FORMAT
Modifier and Type | Method and Description |
---|---|
static DecimalOptionFieldAdapter.Builder |
builder()
Returns a new builder.
|
protected void |
doEmitDefault(DecimalOption property,
StringBuilder output)
Emits the given non-null property value into the string builder.
|
protected void |
doParseDefault(CharSequence contents,
DecimalOption property)
Parses the given non-null character sequence and set the parsed value into property.
|
protected Number |
get(DecimalOption property)
Returns the property value.
|
protected void |
set(BigDecimal value,
DecimalOption property)
Sets the given number into the property.
|
doEmit, doParse, setSpecial
clear, emit, parse
public static final DecimalOptionFieldAdapter.OutputStyle DEFAULT_OUTPUT_STYLE
DecimalOptionFieldAdapter.OutputStyle
.public static DecimalOptionFieldAdapter.Builder builder()
protected Number get(DecimalOption property)
NumericOptionFieldAdapter
get
in class NumericOptionFieldAdapter<DecimalOption>
property
- the propertyprotected void set(BigDecimal value, DecimalOption property)
NumericOptionFieldAdapter
set
in class NumericOptionFieldAdapter<DecimalOption>
value
- the valueproperty
- the propertyprotected void doParseDefault(CharSequence contents, DecimalOption property)
NumericOptionFieldAdapter
doParseDefault
in class NumericOptionFieldAdapter<DecimalOption>
contents
- the contents, never null
property
- the destination propertyprotected void doEmitDefault(DecimalOption property, StringBuilder output)
NumericOptionFieldAdapter
doEmitDefault
in class NumericOptionFieldAdapter<DecimalOption>
property
- the property value, never null
nor represents null
output
- the destination bufferCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.