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