org.nfctools.snep
Enum Response
java.lang.Object
java.lang.Enum<Response>
org.nfctools.snep.Response
- All Implemented Interfaces:
- Serializable, Comparable<Response>
public enum Response
- extends Enum<Response>
|
Method Summary |
byte |
getCode()
|
static Response |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Response[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
CONTINUE
public static final Response CONTINUE
SUCCESS
public static final Response SUCCESS
NOT_FOUND
public static final Response NOT_FOUND
EXCESS_DATA
public static final Response EXCESS_DATA
BAD_REQUEST
public static final Response BAD_REQUEST
NOT_IMPLEMENTED
public static final Response NOT_IMPLEMENTED
UNSUPPORTED_VERSION
public static final Response UNSUPPORTED_VERSION
REJECT
public static final Response REJECT
values
public static Response[] 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 (Response c : Response.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Response 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
getCode
public byte getCode()
Copyright © 2012. All Rights Reserved.