|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface History
Interface that defines an history on events
Method Summary | |
---|---|
void |
addEntry(HistoryEntry entry)
Add an entry |
void |
clear()
Removes all entries from the history |
void |
clearData()
Does not clear the internal data; destroys only the data stored on disk. |
void |
flush()
Write data on disk |
java.util.HashMap |
getContent()
Return the internal content of the history as a Map Key = GregorianCalendar Value = HistoryEntry |
HistoryEntry |
getEntry(java.util.GregorianCalendar date)
Return the entry for the given date |
java.util.GregorianCalendar[] |
getOrderedKeys()
Return the keys (dates) as an ordered array |
void |
importHistory(History source)
Imports the content of the source history |
boolean |
isEmpty()
Tells whether the history is empty or not |
void |
load()
Load the history from disk |
Method Detail |
---|
boolean isEmpty()
void addEntry(HistoryEntry entry) throws java.io.IOException
java.io.IOException
java.util.HashMap getContent()
java.util.GregorianCalendar[] getOrderedKeys()
HistoryEntry getEntry(java.util.GregorianCalendar date)
void flush() throws java.io.IOException
java.io.IOException
void clear()
void clearData()
void load() throws java.io.IOException
java.io.IOException
void importHistory(History source) throws java.io.IOException
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |