Package io.ocfl.api.model
Class FileChangeHistory
java.lang.Object
io.ocfl.api.model.FileChangeHistory
Contains the complete change history of a file.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAn ordered list, oldest to newest, of every change that occurred to the fileIterator for traversing file changes from oldest to newestThe most recent file change to occurThe oldest change to occur.getPath()
The logical path of the fileIterator for traversing file changes from newest to oldest.setFileChanges
(List<FileChange> fileChanges) toString()
-
Constructor Details
-
FileChangeHistory
public FileChangeHistory()
-
-
Method Details
-
getPath
The logical path of the file- Returns:
- logical path
-
setPath
-
getFileChanges
An ordered list, oldest to newest, of every change that occurred to the file- Returns:
- list of changes
-
setFileChanges
-
getMostRecent
The most recent file change to occur- Returns:
- most recent change
-
getOldest
The oldest change to occur. This will be the change that introduced the file into the object.- Returns:
- oldest change
-
getReverseChangeIterator
Iterator for traversing file changes from newest to oldest.- Returns:
- reverse change iterator
-
getForwardChangeIterator
Iterator for traversing file changes from oldest to newest- Returns:
- forward change iterator
-
toString
-