protected static enum LineReaderImpl.State extends Enum<LineReaderImpl.State>
Enum Constant and Description |
---|
DONE
readLine should exit and return the buffer content
|
EOF
readLine should exit and throw an EOFException
|
INTERRUPT
readLine should exit and throw an UserInterruptException
|
NORMAL
The user is just typing away
|
Modifier and Type | Method and Description |
---|---|
static LineReaderImpl.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LineReaderImpl.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LineReaderImpl.State NORMAL
public static final LineReaderImpl.State DONE
public static final LineReaderImpl.State EOF
public static final LineReaderImpl.State INTERRUPT
public static LineReaderImpl.State[] values()
for (LineReaderImpl.State c : LineReaderImpl.State.values()) System.out.println(c);
public static LineReaderImpl.State 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 © 2017. All rights reserved.