com.github.skjolber.stcsv.column.bi.StringCsvColumnValueConsumer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of databinder Show documentation
Show all versions of databinder Show documentation
High-performance CSV databinding library
package com.github.skjolber.stcsv.column.bi;
import java.util.function.BiConsumer;
public class StringCsvColumnValueConsumer implements CsvColumnValueConsumer {
protected final BiConsumer setter;
public StringCsvColumnValueConsumer(BiConsumer setter) {
this.setter = setter;
}
@Override
public void consume(T object, char[] array, int start, int end) {
setter.accept(object, new String(array, start, end - start));
}
}