|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<ReturnType>
org.springframework.data.redis.connection.ReturnType
public enum ReturnType
Represents a data type returned from Redis, currently used to denote the expected return type of Redis scripting commands
| Enum Constant Summary | |
|---|---|
BOOLEAN
Returned as Boolean |
|
INTEGER
Returned as Long |
|
MULTI
Returned as List |
|
STATUS
Returned as byte[] |
|
VALUE
Returned as byte[] |
|
| Method Summary | |
|---|---|
static ReturnType |
fromJavaType(Class<?> javaType)
|
static ReturnType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ReturnType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final ReturnType BOOLEAN
public static final ReturnType INTEGER
public static final ReturnType MULTI
public static final ReturnType STATUS
public static final ReturnType VALUE
| Method Detail |
|---|
public static ReturnType[] values()
for (ReturnType c : ReturnType.values()) System.out.println(c);
public static ReturnType valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic static ReturnType fromJavaType(Class<?> javaType)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||