public class LongCsvColumnValueConsumer<T> extends Object implements CsvColumnValueConsumer<T>
| Modifier and Type | Field and Description |
|---|---|
protected static long |
L_BILLION |
protected static String |
MAX_LONG_STR |
protected static String |
MIN_LONG_STR_NO_SIGN |
protected ObjLongConsumer<T> |
setter |
| Constructor and Description |
|---|
LongCsvColumnValueConsumer(ObjLongConsumer<T> setter) |
| Modifier and Type | Method and Description |
|---|---|
void |
consume(T object,
char[] array,
int start,
int end)
Generic interface for parsing values from a character array.
|
protected static int |
parseInteger(char[] ch,
int off,
int len)
Fast method for parsing integers that are known to fit into
regular 32-bit signed int type.
|
static long |
parseLong(char[] ch,
int off,
int end) |
protected static final long L_BILLION
protected static final String MIN_LONG_STR_NO_SIGN
protected static final String MAX_LONG_STR
protected final ObjLongConsumer<T> setter
public LongCsvColumnValueConsumer(ObjLongConsumer<T> setter)
public void consume(T object, char[] array, int start, int end)
CsvColumnValueConsumerconsume in interface CsvColumnValueConsumer<T>object - targetarray - character arraystart - start index, inclusiveend - end index, exclusivepublic static long parseLong(char[] ch,
int off,
int end)
protected static int parseInteger(char[] ch,
int off,
int len)
ch - arrayoff - start index (inclusive)len - lengthCopyright © 2022 Media Skjolberg. All rights reserved.