Package jmri.jmrit.revhistory
Class FileHistory
java.lang.Object
jmri.jmrit.revhistory.FileHistory
- All Implemented Interfaces:
InstanceManagerAutoDefault
Memo class to remember a file revision history.
These can be nested: A revision can come with a history.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassMemo class for each revision itself. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddOperation(String type, String date, String filename, FileHistory history) Add a revision from complete information created elsewhere.voidaddOperation(String type, String filename, FileHistory history) voidgetList()voidpurge(int keep) toString()
-
Field Details
-
list
-
-
Constructor Details
-
FileHistory
public FileHistory()
-
-
Method Details
-
addOperation
Add a revision from complete information created elsewhere.- Parameters:
type- operation typedate- operation datefilename- file operated onhistory- source history instance
-
addOperation
-
addOperation
-
purge
- Parameters:
keep- Number of levels to keep
-
toString
-
toString
-
getList
-