public class BooleanConverter extends Object implements TypeConverter<Boolean>
Boolean
.parseBoolean(), so look there for all its peccadilloes.Boolean.parseBoolean(String)| Constructor and Description |
|---|
BooleanConverter() |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
convert(String input,
GetOpt options,
OptionSpecification option)
Convert a string into a Boolean or null.
|
public Boolean convert(String input, GetOpt options, OptionSpecification option)
convert in interface TypeConverter<Boolean>input - the input stringoptions - the options set in use (you'll want this for the usage())option - the specific option whose argument we're trying to parsenull if input is null or blank, or a Boolean as if lowercased by parseBoolean.Boolean.parseBoolean(String)Copyright © 2017. All rights reserved.