com.sleepycat.je.rep.impl
Enum TextProtocol.TOKENS
java.lang.Object
java.lang.Enum<TextProtocol.TOKENS>
com.sleepycat.je.rep.impl.TextProtocol.TOKENS
- All Implemented Interfaces:
- Serializable, Comparable<TextProtocol.TOKENS>
- Enclosing class:
- TextProtocol
public static enum TextProtocol.TOKENS
- extends Enum<TextProtocol.TOKENS>
Represents the tokens on a message line. The order of the enumerators
represents the order of the tokens in the wire format.
VERSION_TOKEN
public static final TextProtocol.TOKENS VERSION_TOKEN
NAME_TOKEN
public static final TextProtocol.TOKENS NAME_TOKEN
ID_TOKEN
public static final TextProtocol.TOKENS ID_TOKEN
OP_TOKEN
public static final TextProtocol.TOKENS OP_TOKEN
FIRST_PAYLOAD_TOKEN
public static final TextProtocol.TOKENS FIRST_PAYLOAD_TOKEN
values
public static TextProtocol.TOKENS[] 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 (TextProtocol.TOKENS c : TextProtocol.TOKENS.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static TextProtocol.TOKENS 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 (c) 2004-2012 Oracle. All rights reserved.