Package com.redislabs.modules.rejson
Enum JReJSON.ExistenceModifier
- java.lang.Object
-
- java.lang.Enum<JReJSON.ExistenceModifier>
-
- com.redislabs.modules.rejson.JReJSON.ExistenceModifier
-
- All Implemented Interfaces:
Serializable
,Comparable<JReJSON.ExistenceModifier>
,redis.clients.jedis.commands.ProtocolCommand
- Enclosing class:
- JReJSON
public static enum JReJSON.ExistenceModifier extends Enum<JReJSON.ExistenceModifier> implements redis.clients.jedis.commands.ProtocolCommand
Existential modifier for the set command, by default we don't care
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DEFAULT
MUST_EXIST
NOT_EXISTS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getRaw()
static JReJSON.ExistenceModifier
valueOf(String name)
Returns the enum constant of this type with the specified name.static JReJSON.ExistenceModifier[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DEFAULT
public static final JReJSON.ExistenceModifier DEFAULT
-
NOT_EXISTS
public static final JReJSON.ExistenceModifier NOT_EXISTS
-
MUST_EXIST
public static final JReJSON.ExistenceModifier MUST_EXIST
-
-
Method Detail
-
values
public static JReJSON.ExistenceModifier[] 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 (JReJSON.ExistenceModifier c : JReJSON.ExistenceModifier.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static JReJSON.ExistenceModifier 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
-
getRaw
public byte[] getRaw()
- Specified by:
getRaw
in interfaceredis.clients.jedis.commands.ProtocolCommand
-
-