public class DatabasePurgeReport extends Object implements PurgeReporting<Long>
Constructor and Description |
---|
DatabasePurgeReport() |
Modifier and Type | Method and Description |
---|---|
void |
addPurgeInformation(String key,
Long value)
Adds the key value pair as report information to the current purge report.
|
boolean |
containsReport(String key)
Returns true if the key is present in the current report.
|
Map<String,Long> |
getPurgeReport()
Returns the current purge report.
|
String |
getPurgeReportAsString()
Transforms and returns the purge report to a string.
|
Long |
getReportValue(String key)
Returns the value for the given key.
|
boolean |
isEmpty()
Returns true if the report is empty.
|
public void addPurgeInformation(String key, Long value)
PurgeReporting
addPurgeInformation
in interface PurgeReporting<Long>
key
- the report keyvalue
- the report valuepublic Map<String,Long> getPurgeReport()
PurgeReporting
getPurgeReport
in interface PurgeReporting<Long>
public String getPurgeReportAsString()
PurgeReporting
getPurgeReportAsString
in interface PurgeReporting<Long>
public Long getReportValue(String key)
PurgeReporting
getReportValue
in interface PurgeReporting<Long>
key
- the key which exist in the current reportpublic boolean containsReport(String key)
PurgeReporting
containsReport
in interface PurgeReporting<Long>
key
- the keypublic boolean isEmpty()
PurgeReporting
isEmpty
in interface PurgeReporting<Long>
Copyright © 2018. All rights reserved.