Package org.forgerock.api.models
Class VersionedPath
java.lang.Object
org.forgerock.api.models.VersionedPath
Class that represents versioned
Resource
s on an API descriptor path.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Builder to help construct the VersionedPath. -
Field Summary
Modifier and TypeFieldDescriptionstatic final Version
Version0.0
represents null/empty, for when resource versions are not required by an API (e.g., OpenIDM). -
Method Summary
Modifier and TypeMethodDescriptionboolean
Gets theResource
for a given version.getPaths()
Gets aMap
of versions toResource
s.Returns all resource-versions on this path.int
hashCode()
static VersionedPath.Builder
Create a new Builder for VersionedPath.
-
Field Details
-
UNVERSIONED
Version0.0
represents null/empty, for when resource versions are not required by an API (e.g., OpenIDM).
-
-
Method Details
-
getPaths
Gets aMap
of versions toResource
s. This method is currently only used for JSON serialization.- Returns:
Map
of versions toResource
s.
-
get
Gets theResource
for a given version.- Parameters:
version
- Resource version- Returns:
Resource
ornull
if does-not-exist.
-
getVersions
Returns all resource-versions on this path.- Returns:
- All resource-versions.
-
versionedPath
Create a new Builder for VersionedPath.- Returns:
- Builder
-
equals
-
hashCode
public int hashCode()
-