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