public class BolProp extends PropertyBase<Boolean>
Boolean configuration Property
Parsing values from strings is done by the BolType.
When parsing, a string is considered True if it matches one of the 'true-ish' values or
false if it matches one of the 'false-ish' values (case-insensitive).
Recognized True strings:
Recognized False strings:
RuntimeException at startup, values that are empty or
have been trimmed to empty are considered null.
Note: The parsing behavior of this class changed in the 0.5.0 release
to have an explicit list of False values.
See Issue 658.
| 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 © 2022. All rights reserved.