public abstract class TableCalculation extends java.lang.Object implements java.lang.Comparable<TableCalculation>
| Modifier and Type | Field and Description |
|---|---|
static TableCalculation |
AVERAGE
Returns the average (mean) value.
|
static TableCalculation |
MAXIMUM
Returns the largest number.
|
static TableCalculation |
MEDIAN
Returns the median number.
|
static TableCalculation |
MINIMUM
Returns the smallest number.
|
static TableCalculation |
STDDEV
Returns the standard deviation.
|
static TableCalculation |
SUM
Returns the sum (total) of all values.
|
| Modifier and Type | Method and Description |
|---|---|
abstract java.math.BigDecimal |
calculate(java.math.BigDecimal[] numbers,
Column column)
Calculate the result given the specified numbers.
|
int |
compareTo(TableCalculation f) |
protected int |
getDecimalPrecision(Column column) |
java.lang.String |
getName()
Returns the name of the calculation.
|
MultilingualText |
getTitle()
Returns the title of the calculation.
|
java.lang.String |
toString() |
public static final TableCalculation SUM
public static final TableCalculation AVERAGE
public static final TableCalculation MAXIMUM
public static final TableCalculation MINIMUM
public static final TableCalculation MEDIAN
public static final TableCalculation STDDEV
protected int getDecimalPrecision(Column column)
public abstract java.math.BigDecimal calculate(java.math.BigDecimal[] numbers,
Column column)
numbers - The numbers to calculate over. This array must be sorted
in ascending order, i.e., the smallest number is first and the
largest number is last.column - The column in which the calculation is taking place.public MultilingualText getTitle()
public int compareTo(TableCalculation f)
compareTo in interface java.lang.Comparable<TableCalculation>public java.lang.String getName()
public java.lang.String toString()
toString in class java.lang.ObjectCopyright ? Technia AB. All Rights Reserved.