Enum ConsoleOutput
- Alle implementierten Schnittstellen:
Serializable,Comparable<ConsoleOutput>,java.lang.constant.Constable
Specifies how to treat color and dynamic console output.
-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum-Konstanten - Übersicht
Enum-KonstantenEnum-KonstanteBeschreibungEnable color and rich output when the current process is attached to a console, disable when not attached to a console.Disable all color and rich output.Enable color and rich output, regardless of whether the current process is attached to a console or not.Enable color and rich output like Rich, but output more detailed message. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic ConsoleOutputGibt die Enumerationskonstante dieses Typs mit dem angegebenen Namen zurück.static ConsoleOutput[]values()Gibt ein Array mit den Konstanten dieses Enum-Typs in der Reihenfolge ihrer Deklaration zurück.
-
Enum-Konstanten - Details
-
Plain
Disable all color and rich output. Generate plain text only. -
Auto
Enable color and rich output when the current process is attached to a console, disable when not attached to a console. -
Rich
Enable color and rich output, regardless of whether the current process is attached to a console or not. When not attached to a console, the color and rich output is encoded using ANSI control characters. -
Verbose
Enable color and rich output like Rich, but output more detailed message.- Seit:
- 4.3
-
-
Methodendetails
-
values
Gibt ein Array mit den Konstanten dieses Enum-Typs in der Reihenfolge ihrer Deklaration zurück.- Gibt zurück:
- ein Array mit den Konstanten dieses Enumerationstyps in der Reihenfolge ihrer Deklaration
-
valueOf
Gibt die Enumerationskonstante dieses Typs mit dem angegebenen Namen zurück. Die Zeichenfolge muss exakt mit einer ID übereinstimmen, mit der eine Enumerationskonstante in diesem Typ deklariert wird. (Zusätzliche Leerzeichen sind nicht zulässig.)- Parameter:
name- Name der zurückzugebenden Enumerationskonstante.- Gibt zurück:
- Enumerationskonstante mit dem angegebenen Namen
- Löst aus:
IllegalArgumentException- wenn dieser Enumerationstyp keine Konstante mit dem angegebenen Namen enthältNullPointerException- wenn das Argument nicht angegeben wird
-