Class ObjectDetails


  • public class ObjectDetails
    extends Object
    Details the current state of an object and all of its versions.
    • Constructor Detail

      • ObjectDetails

        public ObjectDetails()
    • Method Detail

      • getHeadVersion

        public VersionDetails getHeadVersion()
        The version details of the HEAD version of the object
        Returns:
        VersionDetails for the object's HEAD version
      • getId

        public String getId()
        Returns:
        the object's id
      • getHeadVersionNum

        public VersionNum getHeadVersionNum()
        The version number of the HEAD version of the object
        Returns:
        the version number of the object's HEAD version
      • getDigestAlgorithm

        public DigestAlgorithm getDigestAlgorithm()
        Returns:
        the digest algorithm used to identify files within the OCFL object
      • getVersionMap

        public Map<VersionNum,​VersionDetails> getVersionMap()
        Map of version number to version details for all of the versions of the object.
        Returns:
        map of all of the object's versions
      • getVersion

        public VersionDetails getVersion​(VersionNum versionNum)
        Returns the VersionDetails for the specified version number or null if the version does not exist
        Parameters:
        versionNum - the version number of the version to retrieve
        Returns:
        version details or null
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object