public class CharConverter extends Object implements TypeConverter<Character>
| Constructor and Description |
|---|
CharConverter() |
| Modifier and Type | Method and Description |
|---|---|
Character |
convert(String input,
GetOpt options,
OptionSpecification option)
Convert a string into a Character or null.
|
public Character convert(String input, GetOpt options, OptionSpecification option)
convert in interface TypeConverter<Character>input - the input string (this will NOT be trimmed)options - 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 "", or the character in the string.CommandLineProcessingException - if the string has more than one characterCopyright © 2017. All rights reserved.