
org.jxls.functions.DoubleSummarizerBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jxls-core Show documentation
Show all versions of jxls-core Show documentation
Small library for Excel generation based on XLS templates
The newest version!
package org.jxls.functions;
public class DoubleSummarizerBuilder implements SummarizerBuilder {
@Override
public Summarizer build() {
return new Summarizer() {
private double sum = 0;
@Override
public void add(Object number) {
if (number != null) {
sum += ((Double) number).doubleValue();
}
}
@Override
public Double getSum() {
return Double.valueOf(sum);
}
};
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy