public class ProcessingHistory extends Object
The history is unique in an application context designed as static class.
| Modifier and Type | Field and Description |
|---|---|
private List<HistoryEntry> |
entries
The list of entries.
|
private static ProcessingHistory |
instance
The singleton instance.
|
private SimpleDateFormat |
sdf |
| Modifier | Constructor and Description |
|---|---|
private |
ProcessingHistory()
Private constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(HistoryEntry he)
Adds an entry to the processing history.
|
void |
add(IWorkPackage wp)
Adds an entry to the processing history.
|
List<HistoryEntry> |
getEntries()
Gets the entries as a list of
HistoryEntry instances. |
static ProcessingHistory |
getInstance()
Gets the singleton instance of the processing history.
|
String |
listEntries()
Concatenates all entries to a string representation.
|
private List<HistoryEntry> entries
private static ProcessingHistory instance
private SimpleDateFormat sdf
public static ProcessingHistory getInstance()
public List<HistoryEntry> getEntries()
HistoryEntry instances.public String listEntries()
public void add(HistoryEntry he)
he - the entrypublic void add(IWorkPackage wp)
wp - the work packageCopyright © 2009–2017 Helmut Ahammer, Philipp Kainz. All rights reserved.