public class BooleanUtilities
extends java.lang.Object
| Constructor and Description |
|---|
BooleanUtilities(LocalizationManager injectedLocalizationManager,
ApplicationProperties injectedApplicationProperties) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
convertToBoolean(java.lang.String stringBoolean)
Converts various strings to booleans, by using regex, to allow for more variations in input.
Converted to TRUE are:[Tt]rue1[Yy]es[Yy]Language Key cli.input.trueLanguage Key cli.input.yesLanguage Key cli.input.yes.shortConverted to FALSE are:[Ff]alse0[Nn]o[Nn]Language Key cli.input.falseLanguage Key cli.input.noLanguage Key cli.input.no.short |
boolean |
readBoolean()
Prompts the user to enter values which will then be converted to booleans, either
TRUE or FALSE. |
public BooleanUtilities(LocalizationManager injectedLocalizationManager, ApplicationProperties injectedApplicationProperties)
public boolean convertToBoolean(java.lang.String stringBoolean)
TRUE are:[Tt]rue1[Yy]es[Yy]cli.input.truecli.input.yescli.input.yes.shortFALSE are:[Ff]alse0[Nn]o[Nn]cli.input.falsecli.input.nocli.input.no.shortstringBoolean - String. The string which should be converted to boolean if it matches certain patterns.@Generated public boolean readBoolean()
TRUE or FALSE.
This prevents any non-boolean values from being written to the new configuration file.