public class Report extends Object
| Constructor and Description |
|---|
Report(Report report)
Copy constructor.
|
Report(String resolvableReport,
java.util.function.BiFunction<String,Object[],String> reportResolver,
Object... arguments)
Creates a new report based on a resolvable string.
|
| Modifier and Type | Method and Description |
|---|---|
void |
convertArguments(ArgumentConverter argumentConverter)
Converts all arguments given to the constructor using the given
ArgumentConverter. |
boolean |
equals(Object object) |
Object[] |
getArguments() |
String |
getResolvableReport() |
String |
getResolvedReport()
Once this method has been called, the report will not be resolved again, so any changing arguments after a call
to this method are not respected.
|
int |
hashCode() |
static Report |
report(String report,
Object... arguments) |
String |
toString() |
public Report(Report report)
report - the report to be copiedpublic Report(String resolvableReport, java.util.function.BiFunction<String,Object[],String> reportResolver, Object... arguments)
ArgumentConverters may be used to convert the given argument, changing the meaning of the report.resolvableReport - a report which can be resolved with the resolver and arguments. Must not be nullreportResolver - to resolve the report ot a sensible string. Must not be nullarguments - all arguments used to enrich the report. May be empty, but not nullpublic String getResolvableReport()
public String getResolvedReport()
public void convertArguments(ArgumentConverter argumentConverter)
ArgumentConverter.argumentConverter - an converter to change any argument into an other representationpublic Object[] getArguments()
Copyright © 2019. All rights reserved.