| Constructor and Description |
|---|
ReportEntry() |
| Modifier and Type | Method and Description |
|---|---|
static ReportEntry |
from(Map<String,String> keyValuePairs)
Factory for creating a new
ReportEntry from a map of key-value pairs. |
static ReportEntry |
from(String key,
String value)
Factory for creating a new
ReportEntry from a key-value pair. |
Map<String,String> |
getKeyValuePairs()
Get an unmodifiable copy of the map of key-value pairs to be published.
|
LocalDateTime |
getTimestamp()
Get the timestamp for when this
ReportEntry was created. |
String |
toString() |
public static ReportEntry from(Map<String,String> keyValuePairs)
ReportEntry from a map of key-value pairs.keyValuePairs - the map of key-value pairs to be published; never
null; keys and values within entries in the map also must not be
null or blankpublic static ReportEntry from(String key, String value)
ReportEntry from a key-value pair.key - the key under which the value should published; never
null or blankvalue - the value to publish; never null or blankpublic final Map<String,String> getKeyValuePairs()
nullpublic final LocalDateTime getTimestamp()
ReportEntry was created.
Can be used, for example, to order entries.
null