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

backlog4j.xmlrpc.reader.DoubleReader Maven / Gradle / Ivy

There is a newer version: 1.0.3
Show newest version
package backlog4j.xmlrpc.reader;

import backlog4j.BacklogException;

/**
 * @author eguchi
 */
public class DoubleReader extends ObjectReader {

    private Double value;

    @Override
    public void read(String source) {
        try {
            value = Double.valueOf(source.trim());
        } catch (NumberFormatException e) {
            throw new BacklogException("Failed to read value : " + source);
        }
    }

    @Override
    public Double getObject() {
        return value;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy