
com.soulgalore.velocity.NamedDescriptiveStatistics Maven / Gradle / Ivy
package com.soulgalore.velocity;
import org.apache.commons.math3.stat.descriptive.DescriptiveStatistics;
public class NamedDescriptiveStatistics extends DescriptiveStatistics {
/**
*
*/
private static final long serialVersionUID = -3418862026187773755L;
private final String name;
private final String friendlyName;
private final String type;
private final String unit;
private final int decimals;
NamedDescriptiveStatistics() {
name = "";
friendlyName = "";
type = "";
unit = "";
decimals = 0;
}
public NamedDescriptiveStatistics(String name, String friendlyName,
String type, String unit, int decimals) {
this.name = name;
this.friendlyName = friendlyName;
this.type = type;
this.unit = unit;
this.decimals = decimals;
}
public String getName() {
return name;
}
public String getFriendlyName() {
return friendlyName;
}
public String getType() {
return type;
}
public String getUnit() {
return unit;
}
public int getDecimals() {
return decimals;
}
public NamedDescriptiveStatistics newInstance(String name,
String friendlyName, String type, String unit, int decimals) {
return new NamedDescriptiveStatistics(name, friendlyName, type, unit, decimals);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy