public final class StringOptionFieldAdapter extends ValueOptionFieldAdapter<StringOption>
FieldAdapter which accepts StringOption.| Modifier and Type | Class and Description |
|---|---|
static class |
StringOptionFieldAdapter.Builder
A builder of
StringOptionFieldAdapter. |
ValueOptionFieldAdapter.BuilderBase<S extends ValueOptionFieldAdapter.BuilderBase<S,T>,T extends FieldAdapter<?>>DEFAULT_NULL_FORMAT| Modifier and Type | Method and Description |
|---|---|
static StringOptionFieldAdapter.Builder |
builder()
Returns a new builder.
|
protected void |
doEmit(StringOption property,
StringBuilder output)
Emits the given non-null property value into the string builder.
|
protected void |
doParse(CharSequence contents,
StringOption property)
Parses the given non-null character sequence and set the parsed value into property.
|
clear, emit, parsepublic static StringOptionFieldAdapter.Builder builder()
protected void doParse(CharSequence contents, StringOption property)
ValueOptionFieldAdapterdoParse in class ValueOptionFieldAdapter<StringOption>contents - the contents, never nullproperty - the destination propertyprotected void doEmit(StringOption property, StringBuilder output)
ValueOptionFieldAdapterdoEmit in class ValueOptionFieldAdapter<StringOption>property - the property value, never null nor represents nulloutput - the destination bufferCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.