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, parse
public static StringOptionFieldAdapter.Builder builder()
protected void doParse(CharSequence contents, StringOption property)
ValueOptionFieldAdapter
doParse
in class ValueOptionFieldAdapter<StringOption>
contents
- the contents, never null
property
- the destination propertyprotected void doEmit(StringOption property, StringBuilder output)
ValueOptionFieldAdapter
doEmit
in class ValueOptionFieldAdapter<StringOption>
property
- the property value, never null
nor represents null
output
- the destination bufferCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.