public final class Console extends Object
Console class.
Modifier and Type | Class and Description |
---|---|
static class |
Console.Colorize |
Modifier and Type | Field and Description |
---|---|
static String |
BLACK
Constant
BLACK="[30m" |
static String |
BLUE
Constant
BLUE="[34m" |
static String |
CYAN
Constant
CYAN="[36m" |
static String |
GREEN
Constant
GREEN="[32m" |
static String |
PURPLE
Constant
PURPLE="[35m" |
static String |
RED
Constant
RED="[31m" |
static String |
RESET
Constant
RESET="[0m" |
static String |
WHITE
Constant
WHITE="[37m" |
static String |
YELLOW
Constant
YELLOW="[33m" |
Constructor and Description |
---|
Console() |
Modifier and Type | Method and Description |
---|---|
static String |
color(String colorStr,
String value)
color.
|
static String |
color(String colorStr,
String value,
boolean reset)
color.
|
static String |
color(String colorStr,
String format,
boolean reset,
Object... args)
color.
|
static Console.Colorize |
colorize()
colorize.
|
static Console.Colorize |
colorize(boolean allowPrinting) |
static void |
error(String msg,
Object... args)
error.
|
static void |
printLine()
printLine.
|
static void |
printLine(String color)
printLine.
|
static void |
println(String msg,
Object... args)
println.
|
public static final String RESET
RESET="[0m"
public static final String BLACK
BLACK="[30m"
public static final String RED
RED="[31m"
public static final String GREEN
GREEN="[32m"
public static final String YELLOW
YELLOW="[33m"
public static final String BLUE
BLUE="[34m"
public static final String PURPLE
PURPLE="[35m"
public static final String CYAN
CYAN="[36m"
public static final String WHITE
WHITE="[37m"
public static void printLine()
printLine.
public static String color(String colorStr, String format, boolean reset, Object... args)
color.
public static Console.Colorize colorize()
colorize.
Console.Colorize
objectpublic static Console.Colorize colorize(boolean allowPrinting)
Copyright © 2016–2024. All rights reserved.