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

org.sfm.csv.impl.primitive.DoubleCellSetter Maven / Gradle / Ivy

package org.sfm.csv.impl.primitive;

import org.sfm.csv.impl.CellSetter;
import org.sfm.csv.impl.ParsingContext;
import org.sfm.csv.impl.cellreader.DoubleCellValueReader;
import org.sfm.reflect.primitive.DoubleSetter;

public class DoubleCellSetter implements CellSetter {

	private final DoubleSetter setter;
	
	public DoubleCellSetter(DoubleSetter setter) {
		this.setter = setter;
	}
	
	@Override
	public void set(T target, char[] chars, int offset, int length, ParsingContext parsingContext)
			throws Exception {
		setter.setDouble(target, DoubleCellValueReader.parseDouble(chars, offset, length));
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy