public class VerboseParameter extends Object
Modifier and Type | Field and Description |
---|---|
boolean |
required
Whether or not the verbose message is required.
|
Constructor and Description |
---|
VerboseParameter() |
Modifier and Type | Method and Description |
---|---|
void |
ifRequired(Runnable action)
Executes the given action only if verbose messages are required.
|
boolean |
isRequired()
Returns the required.
|
void |
printf(PrintWriter writer,
String format,
Object... arguments)
Prints message only if verbose messages are required.
|
public boolean isRequired()
public void ifRequired(Runnable action)
action
- the actionpublic void printf(PrintWriter writer, String format, Object... arguments)
writer
- the target writerformat
- the message formatarguments
- the message argumentsCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.