Package glide.api.models.commands
Enum WeightAggregateOptions.Aggregate
- java.lang.Object
-
- java.lang.Enum<WeightAggregateOptions.Aggregate>
-
- glide.api.models.commands.WeightAggregateOptions.Aggregate
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<WeightAggregateOptions.Aggregate>
- Enclosing class:
- WeightAggregateOptions
public static enum WeightAggregateOptions.Aggregate extends java.lang.Enum<WeightAggregateOptions.Aggregate>
Option for the method of aggregating scores from multiple sets. This option defaults to SUM if not specified.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String[]toArgs()static WeightAggregateOptions.AggregatevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static WeightAggregateOptions.Aggregate[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SUM
public static final WeightAggregateOptions.Aggregate SUM
Aggregates by summing the scores of each element across sets.
-
MIN
public static final WeightAggregateOptions.Aggregate MIN
Aggregates by selecting the minimum score for each element across sets.
-
MAX
public static final WeightAggregateOptions.Aggregate MAX
Aggregates by selecting the maximum score for each element across sets.
-
-
Method Detail
-
values
public static WeightAggregateOptions.Aggregate[] 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 (WeightAggregateOptions.Aggregate c : WeightAggregateOptions.Aggregate.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static WeightAggregateOptions.Aggregate valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
toArgs
public java.lang.String[] toArgs()
-
-