org.fusesource.hawtdispatch.transport
Enum ProtocolCodec.BufferState
java.lang.Object
java.lang.Enum<ProtocolCodec.BufferState>
org.fusesource.hawtdispatch.transport.ProtocolCodec.BufferState
- All Implemented Interfaces:
- Serializable, Comparable<ProtocolCodec.BufferState>
- Enclosing interface:
- ProtocolCodec
public static enum ProtocolCodec.BufferState
- extends Enum<ProtocolCodec.BufferState>
EMPTY
public static final ProtocolCodec.BufferState EMPTY
WAS_EMPTY
public static final ProtocolCodec.BufferState WAS_EMPTY
NOT_EMPTY
public static final ProtocolCodec.BufferState NOT_EMPTY
FULL
public static final ProtocolCodec.BufferState FULL
values
public static ProtocolCodec.BufferState[] 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 (ProtocolCodec.BufferState c : ProtocolCodec.BufferState.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static ProtocolCodec.BufferState 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 © 2010-2014 FuseSource, Corp.. All Rights Reserved.