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