Package org.redisson.api
Enum FunctionResult
- java.lang.Object
-
- java.lang.Enum<FunctionResult>
-
- org.redisson.api.FunctionResult
-
- All Implemented Interfaces:
Serializable
,Comparable<FunctionResult>
public enum FunctionResult extends Enum<FunctionResult>
Function result type.- Author:
- Nikita Koksharov
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BOOLEAN
Result is a value of Boolean typeLIST
Result is a value of List typeLONG
Result is a value of Long typeMAPVALUE
Result is a value of Map Value type.MAPVALUELIST
Result is a value of List type, which consists of objects of Map Value type.STRING
Result is a value of plain String typeVALUE
Result is a value of user defined type
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RedisCommand<?>
getCommand()
static FunctionResult
valueOf(String name)
Returns the enum constant of this type with the specified name.static FunctionResult[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BOOLEAN
public static final FunctionResult BOOLEAN
Result is a value of Boolean type
-
LONG
public static final FunctionResult LONG
Result is a value of Long type
-
LIST
public static final FunctionResult LIST
Result is a value of List type
-
STRING
public static final FunctionResult STRING
Result is a value of plain String type
-
VALUE
public static final FunctionResult VALUE
Result is a value of user defined type
-
MAPVALUE
public static final FunctionResult MAPVALUE
Result is a value of Map Value type. Codec.getMapValueDecoder() and Codec.getMapValueEncoder() methods are used for data deserialization or serialization.
-
MAPVALUELIST
public static final FunctionResult MAPVALUELIST
Result is a value of List type, which consists of objects of Map Value type. Codec.getMapValueDecoder() and Codec.getMapValueEncoder() methods are used for data deserialization or serialization.
-
-
Method Detail
-
values
public static FunctionResult[] 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 (FunctionResult c : FunctionResult.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FunctionResult 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
-
getCommand
public RedisCommand<?> getCommand()
-
-