Class OcflVersionInfo


  • public class OcflVersionInfo
    extends Object
    Contains OCFL version metadata for a resource version.
    Author:
    pwinckles
    • Constructor Detail

      • OcflVersionInfo

        public OcflVersionInfo​(String resourceId,
                               String ocflObjectId,
                               String versionNumber,
                               Instant created)
    • Method Detail

      • getResourceId

        public String getResourceId()
        Returns:
        the resourceId of the resource the version is for
      • getOcflObjectId

        public String getOcflObjectId()
        Returns:
        the OCFL object id the resource is in
      • getVersionNumber

        public String getVersionNumber()
        Returns:
        the OCFL version number of the version
      • getCreated

        public Instant getCreated()
        Returns:
        the timestamp when the version was created
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object