public class PrintUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
print(List<Counter> counters,
PrintStream printStream)
Prints the statistics for the given counters in the specified print stream.
|
static void |
print(List<Counter> counters,
PrintStream printStream,
TimeUnit timeUnit)
Prints the statistics for the given counters in the specified print stream.
|
static void |
print(Map<Counter.Type,List<Counter>> countersByType,
PrintStream printStream)
Prints the statistics for the given counters in the specified print stream.
|
static void |
print(Map<Counter.Type,List<Counter>> countersByType,
PrintStream printStream,
TimeUnit timeUnit)
Prints the statistics for the given counters in the specified print stream.
|
static void |
print(Stopwatch stopwatch,
PrintStream printStream)
Prints the statistics for the given stopwatch in the specified print stream.
|
static void |
print(Stopwatch stopwatch,
PrintStream printStream,
TimeUnit timeUnit)
Prints the statistics for the given stopwatch in the specified print stream.
|
public static void print(Stopwatch stopwatch, PrintStream printStream)
stopwatch - the stopwatch to be printedprintStream - the print stream to which statistics will be sentNullPointerException - if a null stopwatch or print stream is receivedpublic static void print(Stopwatch stopwatch, PrintStream printStream, TimeUnit timeUnit)
stopwatch - the stopwatch to be printedprintStream - the print stream to which statistics will be senttimeUnit - the time unit in which elapsed times will be displayed; if null, the
default time unit specified for each counter will be appliedNullPointerException - if a null stopwatch or print stream is receivedpublic static void print(List<Counter> counters, PrintStream printStream)
counters - the counters to be printedprintStream - the print stream to which statistics will be sentNullPointerException - if a null collection or print stream is receivedpublic static void print(List<Counter> counters, PrintStream printStream, TimeUnit timeUnit)
counters - the counters to be printedprintStream - the print stream to which statistics will be senttimeUnit - the time unit in which elapsed times will be displayed; if null, the
default time unit specified for each counter will be appliedNullPointerException - if a null collection or print stream is receivedpublic static void print(Map<Counter.Type,List<Counter>> countersByType, PrintStream printStream)
countersByType - the counters to be printedprintStream - the print stream to which statistics will be sentNullPointerException - if a null collection or print stream is receivedpublic static void print(Map<Counter.Type,List<Counter>> countersByType, PrintStream printStream, TimeUnit timeUnit)
countersByType - the counters to be printedprintStream - the print stream to which statistics will be senttimeUnit - the time unit in which elapsed times will be displayed; if null,
the default time unit specified for each counter will be appliedNullPointerException - if a null collection or print stream is receivedCopyright © 2020. All rights reserved.