T - the property typepublic abstract class NumericOptionFieldAdapter<T extends ValueOption<T>> extends ValueOptionFieldAdapter<T>
ValueOptionFieldAdapter for numeric types.| Modifier and Type | Class and Description |
|---|---|
protected static class |
NumericOptionFieldAdapter.NumericBuilderBase<S extends NumericOptionFieldAdapter.NumericBuilderBase<S,T>,T extends FieldAdapter<?>>
A basic implementation of builder for
NumericOptionFieldAdapter. |
ValueOptionFieldAdapter.BuilderBase<S extends ValueOptionFieldAdapter.BuilderBase<S,T>,T extends FieldAdapter<?>>DEFAULT_NULL_FORMAT| Modifier and Type | Method and Description |
|---|---|
protected void |
doEmit(T property,
StringBuilder output)
Emits the given non-null property value into the string builder.
|
protected abstract void |
doEmitDefault(T property,
StringBuilder output)
Emits the given non-null property value into the string builder.
|
protected void |
doParse(CharSequence contents,
T property)
Parses the given non-null character sequence and set the parsed value into property.
|
protected abstract void |
doParseDefault(CharSequence contents,
T property)
Parses the given non-null character sequence and set the parsed value into property.
|
protected abstract Number |
get(T property)
Returns the property value.
|
protected abstract void |
set(BigDecimal value,
T property)
Sets the given number into the property.
|
protected void |
setSpecial(CharSequence contents,
Number value,
T property)
Sets the given special number into the property.
|
clear, emit, parseprotected final void doParse(CharSequence contents, T property)
ValueOptionFieldAdapterdoParse in class ValueOptionFieldAdapter<T extends ValueOption<T>>contents - the contents, never nullproperty - the destination propertyprotected final void doEmit(T property, StringBuilder output)
ValueOptionFieldAdapterdoEmit in class ValueOptionFieldAdapter<T extends ValueOption<T>>property - the property value, never null nor represents nulloutput - the destination bufferprotected abstract void doParseDefault(CharSequence contents, T property)
contents - the contents, never nullproperty - the destination propertyIllegalArgumentException - if the character sequence is malformed for this fieldprotected abstract void doEmitDefault(T property, StringBuilder output)
property - the property value, never null nor represents nulloutput - the destination bufferprotected abstract Number get(T property)
property - the propertyprotected abstract void set(BigDecimal value, T property)
value - the valueproperty - the propertyprotected void setSpecial(CharSequence contents, Number value, T property)
contents - the original contentsvalue - the valueproperty - the propertyCopyright © 2011–2018 Asakusa Framework Team. All rights reserved.