com.lambdaworks.redis.protocol
Enum CommandKeyword

java.lang.Object
  extended by java.lang.Enum<CommandKeyword>
      extended by com.lambdaworks.redis.protocol.CommandKeyword
All Implemented Interfaces:
Serializable, Comparable<CommandKeyword>

public enum CommandKeyword
extends Enum<CommandKeyword>

Keyword modifiers for redis commands.

Author:
Will Glozer

Enum Constant Summary
AFTER
           
AGGREGATE
           
ALPHA
           
AND
           
ASC
           
BEFORE
           
BY
           
COUNT
           
DESC
           
ENCODING
           
FLUSH
           
GETNAME
           
IDLETIME
           
KILL
           
LEN
           
LIMIT
           
LIST
           
LOAD
           
MAX
           
MIN
           
NO
           
NOSAVE
           
NOT
           
ONE
           
OR
           
REFCOUNT
           
RESET
           
RESETSTAT
           
SETNAME
           
STORE
           
SUM
           
WEIGHTS
           
WITHSCORES
           
XOR
           
 
Field Summary
 byte[] bytes
           
 
Method Summary
static CommandKeyword valueOf(String name)
          Returns the enum constant of this type with the specified name.
static CommandKeyword[] 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

AFTER

public static final CommandKeyword AFTER

AGGREGATE

public static final CommandKeyword AGGREGATE

ALPHA

public static final CommandKeyword ALPHA

AND

public static final CommandKeyword AND

ASC

public static final CommandKeyword ASC

BEFORE

public static final CommandKeyword BEFORE

BY

public static final CommandKeyword BY

COUNT

public static final CommandKeyword COUNT

DESC

public static final CommandKeyword DESC

ENCODING

public static final CommandKeyword ENCODING

FLUSH

public static final CommandKeyword FLUSH

GETNAME

public static final CommandKeyword GETNAME

IDLETIME

public static final CommandKeyword IDLETIME

KILL

public static final CommandKeyword KILL

LEN

public static final CommandKeyword LEN

LIMIT

public static final CommandKeyword LIMIT

LIST

public static final CommandKeyword LIST

LOAD

public static final CommandKeyword LOAD

MAX

public static final CommandKeyword MAX

MIN

public static final CommandKeyword MIN

NO

public static final CommandKeyword NO

NOSAVE

public static final CommandKeyword NOSAVE

NOT

public static final CommandKeyword NOT

ONE

public static final CommandKeyword ONE

OR

public static final CommandKeyword OR

REFCOUNT

public static final CommandKeyword REFCOUNT

RESET

public static final CommandKeyword RESET

RESETSTAT

public static final CommandKeyword RESETSTAT

SETNAME

public static final CommandKeyword SETNAME

STORE

public static final CommandKeyword STORE

SUM

public static final CommandKeyword SUM

WEIGHTS

public static final CommandKeyword WEIGHTS

WITHSCORES

public static final CommandKeyword WITHSCORES

XOR

public static final CommandKeyword XOR
Field Detail

bytes

public byte[] bytes
Method Detail

values

public static CommandKeyword[] 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 (CommandKeyword c : CommandKeyword.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static CommandKeyword 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 name
NullPointerException - if the argument is null


Copyright © 2013. All Rights Reserved.