public class BolProp extends PropertyBase<Boolean>
Boolean configuration Property
Note: The parsing behavior of this class may change in the 0.5.0 release to have an explicit list of False values. See Issue 658.
Parsing values from strings is done by the BolType.
When parsing, the value is considered True if it case-insensitive matches one of:
If it does not match a value in that list and does not trim to null, it is False.
If the value is null after trimming, the value is considered unset.
| Modifier and Type | Class and Description |
|---|---|
static class |
BolProp.BolBuilder |
| Constructor and Description |
|---|
BolProp(Boolean defaultValue,
boolean nonNull,
String shortDesc,
List<Name> aliases,
PropertyType paramType,
ValueType<Boolean> valueType,
Trimmer trimmer,
String helpText) |
| Modifier and Type | Method and Description |
|---|---|
static BolProp.BolBuilder |
builder()
A chainable builder for this property that should terminate with
build() |
getDefaultValue, getDescription, getExplicitValue, getHelpText, getPropertyType, getRequestedAliases, getTrimmer, getValidators, getValue, getValueType, isNonNullRequiredclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCanonicalName, getInAliases, getOutAliases, getValueAsString, isExplicitlySetpublic static BolProp.BolBuilder builder()
build()
Use as: BolProp.builder()...series of builder methods...build();
Copyright © 2021. All rights reserved.