Package org.fusesource.jansi
Enum AnsiType
- java.lang.Object
-
- java.lang.Enum<AnsiType>
-
- org.fusesource.jansi.AnsiType
-
- All Implemented Interfaces:
Serializable
,Comparable<AnsiType>
public enum AnsiType extends Enum<AnsiType>
Processor type.- Since:
- 2.1
-
-
Enum Constant Summary
Enum Constants Enum Constant Description Emulation
Native
Redirected
Unsupported
VirtualTerminal
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AnsiType
valueOf(String name)
Returns the enum constant of this type with the specified name.static AnsiType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Unsupported
public static final AnsiType Unsupported
-
VirtualTerminal
public static final AnsiType VirtualTerminal
-
Redirected
public static final AnsiType Redirected
-
-
Method Detail
-
values
public static AnsiType[] 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 (AnsiType c : AnsiType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AnsiType 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 nameNullPointerException
- if the argument is null
-
-