
com.fredericboisguerin.excel.converter.DoubleConverter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of excel-reader-writer Show documentation
Show all versions of excel-reader-writer Show documentation
A library to read/write excel files with simple descriptions of the model
package com.fredericboisguerin.excel.converter;
import com.fredericboisguerin.excel.StringUtils;
/**
* Created by fboisguerin on 22/07/2015.
*/
class DoubleConverter extends AbstractConverter {
private static final DoubleConverter INSTANCE = new DoubleConverter();
public static DoubleConverter getInstance() {
return INSTANCE;
}
private DoubleConverter() {
super(Double.class);
}
@Override
protected Double innerConvert(String s) {
return StringUtils.isEmpty(s) ? null : Double.parseDouble(s);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy