public enum PrintFormat extends Enum<PrintFormat>
| Enum Constant and Description |
|---|
DETAILED
Generates a detailed view of each counter type and timing session available in the
stopwatch, one row for each timing session, and the total elapsed time for each type,
as well.
|
SUMMARIZED
Generates a summarized view which represents the total elapsed time for each counter
type available in the stopwatch, one row for each type.
|
| Modifier and Type | Method and Description |
|---|---|
abstract String |
format(Stopwatch stopwatch,
PrintStyle style)
Generates a string with formatted stopwatch data and custom style.
|
static PrintFormat |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PrintFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PrintFormat SUMMARIZED
public static final PrintFormat DETAILED
public static PrintFormat[] values()
for (PrintFormat c : PrintFormat.values()) System.out.println(c);
public static PrintFormat 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 nullpublic abstract String format(Stopwatch stopwatch, PrintStyle style)
stopwatch - the stopwatch to be printedstyle - the PrintStyle to be appliedCopyright © 2021. All rights reserved.