com.samsung.android.sdk.healthdata
Enum HealthDataResolver.AggregateRequest.AggregateFunction
- java.lang.Object
-
- java.lang.Enum<HealthDataResolver.AggregateRequest.AggregateFunction>
-
- com.samsung.android.sdk.healthdata.HealthDataResolver.AggregateRequest.AggregateFunction
-
- All Implemented Interfaces:
- Serializable, Comparable<HealthDataResolver.AggregateRequest.AggregateFunction>
- Enclosing interface:
- HealthDataResolver.AggregateRequest
public static enum HealthDataResolver.AggregateRequest.AggregateFunction extends Enum<HealthDataResolver.AggregateRequest.AggregateFunction>
This enumeration defines useful aggregate functions.
HealthDataResolver.AggregateRequest
provides frequently used aggregate functions:- SUM
- MIN
- MAX
- AVG
- COUNT
- Since:
- 1.0.0
-
-
Enum Constant Summary
Enum Constants Enum Constant and Description AVG
Average of the specific property values that are defined inHealthDataResolver.AggregateRequest.Builder
.COUNT
Total count of the specific property values that are defined inHealthDataResolver.AggregateRequest.Builder
.MAX
Maximum value among the specific property values that are defined inHealthDataResolver.AggregateRequest.Builder
.MIN
Minimum value among the specific property values that are defined inHealthDataResolver.AggregateRequest.Builder
.SUM
Sum of the specific property values that are defined inHealthDataResolver.AggregateRequest.Builder
.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static HealthDataResolver.AggregateRequest.AggregateFunction
valueOf(String name)
Returns the enum constant of this type with the specified name.static HealthDataResolver.AggregateRequest.AggregateFunction[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SUM
public static final HealthDataResolver.AggregateRequest.AggregateFunction SUM
Sum of the specific property values that are defined inHealthDataResolver.AggregateRequest.Builder
.- Since:
- 1.0.0
-
MIN
public static final HealthDataResolver.AggregateRequest.AggregateFunction MIN
Minimum value among the specific property values that are defined inHealthDataResolver.AggregateRequest.Builder
.- Since:
- 1.0.0
-
MAX
public static final HealthDataResolver.AggregateRequest.AggregateFunction MAX
Maximum value among the specific property values that are defined inHealthDataResolver.AggregateRequest.Builder
.- Since:
- 1.0.0
-
AVG
public static final HealthDataResolver.AggregateRequest.AggregateFunction AVG
Average of the specific property values that are defined inHealthDataResolver.AggregateRequest.Builder
.- Since:
- 1.0.0
-
COUNT
public static final HealthDataResolver.AggregateRequest.AggregateFunction COUNT
Total count of the specific property values that are defined inHealthDataResolver.AggregateRequest.Builder
.- Since:
- 1.0.0
-
-
Method Detail
-
values
public static HealthDataResolver.AggregateRequest.AggregateFunction[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (HealthDataResolver.AggregateRequest.AggregateFunction c : HealthDataResolver.AggregateRequest.AggregateFunction.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HealthDataResolver.AggregateRequest.AggregateFunction valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
-