public class IntegerConverter extends Object implements TypeConverter<Integer>
Integer.parseInt(), so look there for all its peccadilloes.Integer.parseInt(String)| Constructor and Description |
|---|
IntegerConverter() |
| Modifier and Type | Method and Description |
|---|---|
Integer |
convert(String input)
Convert a string into a Integer or null.
|
public Integer convert(String input)
convert in interface TypeConverter<Integer>input - the input stringnull if input is null or blank, or a Integer if the string is
parseableCommandLineProcessingException - if the parse failsInteger.parseInt(String)Copyright © 2015. All rights reserved.