public class FlagProp extends PropertyBase<Boolean>
-enableTorpedos as a command line argument will cause
the CmdLineLoader to set it to true.
If after trimming the value is not null, it is parsed by
TextUtil.toBoolean(java.lang.String) to
determine if the String is considered true or false.
| Modifier and Type | Class and Description |
|---|---|
static class |
FlagProp.FlagBuilder |
| Constructor and Description |
|---|
FlagProp(Boolean defaultValue,
String shortDesc,
List<Name> aliases,
PropertyType paramType,
ValueType<Boolean> valueType,
Trimmer trimmer,
String helpText) |
| Modifier and Type | Method and Description |
|---|---|
static FlagProp.FlagBuilder |
builder() |
Boolean |
getValue()
Returns the effective value of this property.
|
getDefaultValue, getDescription, getExplicitValue, getHelpText, getPropertyType, getRequestedAliases, getTrimmer, getValidators, getValueType, isNonNullRequiredpublic Boolean getValue()
Propertypublic static FlagProp.FlagBuilder builder()
Copyright © 2017. All rights reserved.