Package io.ocfl.core.model
Class Version
java.lang.Object
io.ocfl.core.model.Version
OCFL version object. A Version describes the state of an object at a particular point in time. Versions are immutable.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic VersionBuilder
builder()
static VersionBuilder
boolean
Returns the file id associated to the given logical path.Returns the logical paths associated with the given file idgetState()
A map of all of the files that are part of this version of the object.getUser()
int
hashCode()
toString()
-
Constructor Details
-
Version
- Parameters:
created
- timestamp the version was createdmessage
- version messageuser
- user who created the versionstate
- version state- See Also:
-
-
Method Details
-
builder
-
builder
-
getCreated
- Returns:
- the timestamp when this version of the object was created.
-
getMessage
- Returns:
- a human readable message describing the version.
-
getUser
- Returns:
- the person who created this version of the object.
-
getState
A map of all of the files that are part of this version of the object. The map is keyed on file digest ids, and the values are paths that describe where the file is located in this specific version.- Returns:
- version state
-
getFileId
Returns the file id associated to the given logical path.- Parameters:
path
- logical path- Returns:
- associated file id
-
getPaths
Returns the logical paths associated with the given file id- Parameters:
fileId
- file id- Returns:
- associated logical paths
-
toString
-
equals
-
hashCode
public int hashCode()
-