public enum BufferState extends Enum<BufferState>
Enum Constant and Description |
---|
DRAINING
Buffer or builder ready for reading or draining.
|
FILLED
End of filling detected but not yet ready for draining.
|
FILLING
Filling the buffer or builder.
|
IDLE
Buffer or builder idle.
|
Modifier and Type | Method and Description |
---|---|
static BufferState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BufferState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BufferState DRAINING
public static final BufferState FILLED
public static final BufferState FILLING
public static final BufferState IDLE
public static BufferState[] values()
for (BufferState c : BufferState.values()) System.out.println(c);
public static BufferState 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 nullCopyright © 2005–2016. All rights reserved.