backlog4j.xmlrpc.reader.DoubleReader Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of backlog4j Show documentation
Show all versions of backlog4j Show documentation
A Java library for Backlog API
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