Package glide.api.models.commands
Enum ZAddOptions.UpdateOptions
- java.lang.Object
-
- java.lang.Enum<ZAddOptions.UpdateOptions>
-
- glide.api.models.commands.ZAddOptions.UpdateOptions
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ZAddOptions.UpdateOptions>
- Enclosing class:
- ZAddOptions
public static enum ZAddOptions.UpdateOptions extends java.lang.Enum<ZAddOptions.UpdateOptions>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description SCORE_GREATER_THAN_CURRENTOnly update existing elements if the new score is greater than the current score.SCORE_LESS_THAN_CURRENTOnly update existing elements if the new score is less than the current score.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ZAddOptions.UpdateOptionsvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ZAddOptions.UpdateOptions[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SCORE_LESS_THAN_CURRENT
public static final ZAddOptions.UpdateOptions SCORE_LESS_THAN_CURRENT
Only update existing elements if the new score is less than the current score. Equivalent toLTin the Valkey API.
-
SCORE_GREATER_THAN_CURRENT
public static final ZAddOptions.UpdateOptions SCORE_GREATER_THAN_CURRENT
Only update existing elements if the new score is greater than the current score. Equivalent toGTin the Valkey API.
-
-
Method Detail
-
values
public static ZAddOptions.UpdateOptions[] 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 (ZAddOptions.UpdateOptions c : ZAddOptions.UpdateOptions.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ZAddOptions.UpdateOptions 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
-
-