Class VersionedPath


  • public final class VersionedPath
    extends Object
    Class that represents versioned Resources on an API descriptor path.
    • Field Detail

      • UNVERSIONED

        public static final Version UNVERSIONED
        Version 0.0 represents null/empty, for when resource versions are not required by an API (e.g., OpenIDM).
    • Method Detail

      • getPaths

        protected Map<Version,​Resource> getPaths()
        Gets a Map of versions to Resources. This method is currently only used for JSON serialization.
        Returns:
        Map of versions to Resources.
      • get

        public Resource get​(Version version)
        Gets the Resource for a given version.
        Parameters:
        version - Resource version
        Returns:
        Resource or null if does-not-exist.
      • getVersions

        public Set<Version> getVersions()
        Returns all resource-versions on this path.
        Returns:
        All resource-versions.
      • versionedPath

        public static VersionedPath.Builder versionedPath()
        Create a new Builder for VersionedPath.
        Returns:
        Builder
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object