public static class BooleanOptionFieldAdapter.Builder extends ValueOptionFieldAdapter.BuilderBase<BooleanOptionFieldAdapter.Builder,BooleanOptionFieldAdapter>
BooleanOptionFieldAdapter
.Constructor and Description |
---|
Builder()
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
BooleanOptionFieldAdapter |
build()
Builds the
FieldAdapter . |
BooleanOptionFieldAdapter.Builder |
withFalseFormat(String newValue)
Sets the format of
false . |
BooleanOptionFieldAdapter.Builder |
withFalseFormat(String newValue,
Predicate<? super CharSequence> newTester)
Sets the format of
false . |
BooleanOptionFieldAdapter.Builder |
withTrueFormat(String newValue)
Sets the format of
true . |
BooleanOptionFieldAdapter.Builder |
withTrueFormat(String newValue,
Predicate<? super CharSequence> newTester)
Sets the format of
true . |
getNullFormat, lazy, self, withNullFormat
public BooleanOptionFieldAdapter.Builder withTrueFormat(String newValue)
true
.newValue
- the output sequence of true
public BooleanOptionFieldAdapter.Builder withFalseFormat(String newValue)
false
.newValue
- the output sequence of false
public BooleanOptionFieldAdapter.Builder withTrueFormat(String newValue, Predicate<? super CharSequence> newTester)
true
.newValue
- the output sequence of true
newTester
- the input tester of true
public BooleanOptionFieldAdapter.Builder withFalseFormat(String newValue, Predicate<? super CharSequence> newTester)
false
.newValue
- the output sequence of false
newTester
- the input tester of false
public BooleanOptionFieldAdapter build()
ValueOptionFieldAdapter.BuilderBase
FieldAdapter
.build
in class ValueOptionFieldAdapter.BuilderBase<BooleanOptionFieldAdapter.Builder,BooleanOptionFieldAdapter>
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.