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

io.robe.convert.excel.parsers.ParseDouble Maven / Gradle / Ivy

The newest version!
package io.robe.convert.excel.parsers;

import org.apache.poi.ss.usermodel.Cell;

import java.lang.reflect.Field;

public class ParseDouble implements IsParser {
    @Override
    public Object parse(Object o, Field field) {
        Double d = Double.valueOf(o.toString());
        return d;
    }

    @Override
    public void setCell(Object o, Cell cell, Field field) {
        Double aDouble = (Double) o;
        if (aDouble != null) {
            cell.setCellValue(aDouble);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy