public class IntCsvColumnValueConsumer<T> extends Object implements CsvColumnValueConsumer<T>
| Modifier and Type | Field and Description |
|---|---|
protected ObjIntConsumer<T> |
consumer |
| Constructor and Description |
|---|
IntCsvColumnValueConsumer(ObjIntConsumer<T> consumer) |
| 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.
|
static int |
parseInt(char[] ch,
int offset,
int end)
Helper method to (more) efficiently parse integer numbers from
String values.
|
protected final ObjIntConsumer<T> consumer
public IntCsvColumnValueConsumer(ObjIntConsumer<T> consumer)
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 int parseInt(char[] ch,
int offset,
int end)
ch - arrayoffset - start index (inclusive)end - end index (exclusive)Copyright © 2022 Media Skjolberg. All rights reserved.