public class LongConverter extends AbstractNumberConverter<Long>
NOTE: The CsvColumn.format()
is the same pattern used by DecimalFormat
and will be used in both
AbstractNumberConverter.javaToString(com.j256.simplecsv.processor.ColumnInfo<T>, T)
and AbstractNumberConverter.stringToJava(java.lang.String, int, int, com.j256.simplecsv.processor.ColumnInfo<T>, java.lang.String, com.j256.simplecsv.processor.ParseError)
methods.
Constructor and Description |
---|
LongConverter() |
Modifier and Type | Method and Description |
---|---|
static LongConverter |
getSingleton()
Get singleton for class.
|
protected Long |
numberToValue(Number number)
Convert a number to the appropriate Java type.
|
protected Long |
parseString(String value)
Parse a string into the appropriate Java type.
|
configure, isAlwaysTrimInput, isNeedsQuotes, javaToString, stringToJava
public static LongConverter getSingleton()
protected Long numberToValue(Number number)
AbstractNumberConverter
numberToValue
in class AbstractNumberConverter<Long>
protected Long parseString(String value) throws NumberFormatException
AbstractNumberConverter
parseString
in class AbstractNumberConverter<Long>
NumberFormatException
This documentation content is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.