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

com.fredericboisguerin.excel.converter.DoubleConverter Maven / Gradle / Ivy

There is a newer version: 2.1
Show newest version
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