Package org.hisp.dhis.model
Enum Class AggregationType
- All Implemented Interfaces:
Serializable,Comparable<AggregationType>,Constable
Enumeration for aggregation type.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAverage of values.Average of sums across organizational units.Count of values.Custom aggregation, defined elsewhere.Default aggregation, specifics depend on context.First value in the set.First average calculated for each organizational unit.First value for each organizational unit.Last value in the set.Last average calculated for each organizational unit.Last value within a specified period.Average of the last values within each organizational unit in a specified period.Last value for each organizational unit.Maximum value in the set.Maximum of sums across organizational units.Minimum value in the set.Minimum of sums across organizational units.No aggregation.Standard deviation of values.Sum of values.Variance of values. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Set<AggregationType>Average aggregation types.static final Set<AggregationType>Last aggregation types. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether the aggregation type is average.static AggregationTypeReturns the enum constant of this class with the specified name.static AggregationType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SUM
Sum of values. -
AVERAGE
Average of values. -
AVERAGE_SUM_ORG_UNIT
Average of sums across organizational units. -
LAST
Last value in the set. -
LAST_AVERAGE_ORG_UNIT
Last average calculated for each organizational unit. -
LAST_LAST_ORG_UNIT
Last value for each organizational unit. -
LAST_IN_PERIOD
Last value within a specified period. -
LAST_IN_PERIOD_AVERAGE_ORG_UNIT
Average of the last values within each organizational unit in a specified period. -
FIRST
First value in the set. -
FIRST_AVERAGE_ORG_UNIT
First average calculated for each organizational unit. -
FIRST_FIRST_ORG_UNIT
First value for each organizational unit. -
COUNT
Count of values. -
STDDEV
Standard deviation of values. -
VARIANCE
Variance of values. -
MIN
Minimum value in the set. -
MAX
Maximum value in the set. -
MIN_SUM_ORG_UNIT
Minimum of sums across organizational units. -
MAX_SUM_ORG_UNIT
Maximum of sums across organizational units. -
NONE
No aggregation. -
CUSTOM
Custom aggregation, defined elsewhere. -
DEFAULT
Default aggregation, specifics depend on context.
-
-
Field Details
-
AVERAGE_TYPES
Average aggregation types. -
LAST_TYPES
Last aggregation types.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
isAverage
public boolean isAverage()Indicates whether the aggregation type is average.- Returns:
- true if average.
-