@API(status=MAINTAINED, since="1.4.0") public interface SampleReportingFormat extends java.lang.Comparable<SampleReportingFormat>
Modifier and Type | Method and Description |
---|---|
boolean |
appliesTo(java.lang.Object value) |
default int |
compareTo(SampleReportingFormat other) |
default java.util.Optional<java.lang.String> |
label(java.lang.Object value) |
static java.lang.Object |
plainLabel(java.lang.String plain)
Use in report(Object)
if you just want to report a plain label and not a String in quotes.
|
default int |
priority()
Higher priorities have precedence.
|
java.lang.Object |
report(java.lang.Object value)
Transform the value into one that will be handled by default mechanism,
e.g. a Collection, a String, a Map.
|
static java.lang.Object plainLabel(java.lang.String plain)
plain
- String to reportboolean appliesTo(java.lang.Object value)
value
- the value to formatjava.lang.Object report(java.lang.Object value)
value
- the value to formatdefault java.util.Optional<java.lang.String> label(java.lang.Object value)
value
- the value to formatdefault int priority()
@API(status=INTERNAL) default int compareTo(SampleReportingFormat other)
compareTo
in interface java.lang.Comparable<SampleReportingFormat>