public enum ResponseType extends Enum<ResponseType> implements CrType
| Enum Constant and Description |
|---|
BASIC |
CHAIN |
EXCEPTION |
MULTI_RESULT |
SINGLE_RESULT |
| Modifier and Type | Method and Description |
|---|---|
Class<? extends Response> |
getCrClass()
Get the class that provides this type of command/response
|
static ResponseType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ResponseType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ResponseType BASIC
public static final ResponseType SINGLE_RESULT
public static final ResponseType MULTI_RESULT
public static final ResponseType CHAIN
public static final ResponseType EXCEPTION
public static ResponseType[] values()
for (ResponseType c : ResponseType.values()) System.out.println(c);
public static ResponseType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic Class<? extends Response> getCrClass()
CrTypegetCrClass in interface CrTypeResponse/CommandData class that
provides this response/commandCopyright © 2017. All rights reserved.