All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.skjolber.stcsv.column.bi.StringCsvColumnValueConsumer Maven / Gradle / Ivy

There is a newer version: 1.0.25
Show newest version
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));
	}
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy