Serializable
, Comparable<Terminal>
public enum Terminal extends Enum<Terminal>
Enum Constant | Description |
---|---|
CYGWIN |
|
UNKNOWN |
Unknown terminal.
|
XTERM |
Modifier and Type | Method | Description |
---|---|---|
static Terminal |
toTerminal() |
Determines the terminal your application is currently in.
|
static Terminal |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static Terminal[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Terminal XTERM
public static final Terminal CYGWIN
public static final Terminal UNKNOWN
public static Terminal[] values()
for (Terminal c : Terminal.values()) System.out.println(c);
public static Terminal 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 © 2018. All rights reserved.