@NotThreadSafe public class Recorder extends Object
Constructor and Description |
---|
Recorder()
Constructs a new instance.
|
Modifier and Type | Method and Description |
---|---|
static Recorder |
noopRecorder()
Gets a
NoopRecorder that does not actually record anything. |
void |
record(String message)
Records a message.
|
void |
record(String format,
Object... arguments)
Records a message with a format template and arguments.
|
List<String> |
takeRecords()
Gets and clears the records recorded so far.
|
public void record(String message)
message
- messagepublic void record(String format, Object... arguments)
format
- the message format stringarguments
- the message string to be recordedpublic List<String> takeRecords()
public static Recorder noopRecorder()
NoopRecorder
that does not actually record anything.Copyright © 2023. All Rights Reserved.