Package org.forgerock.api.models
Class VersionedPath
java.lang.Object
org.forgerock.api.models.VersionedPath
Class that represents versioned
Resources on an API descriptor path.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilder to help construct the VersionedPath. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final VersionVersion0.0represents null/empty, for when resource versions are not required by an API (e.g., OpenIDM). -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets theResourcefor a given version.getPaths()Gets aMapof versions toResources.Returns all resource-versions on this path.inthashCode()static VersionedPath.BuilderCreate a new Builder for VersionedPath.
-
Field Details
-
UNVERSIONED
Version0.0represents null/empty, for when resource versions are not required by an API (e.g., OpenIDM).
-
-
Method Details
-
getPaths
Gets aMapof versions toResources. This method is currently only used for JSON serialization.- Returns:
Mapof versions toResources.
-
get
Gets theResourcefor a given version.- Parameters:
version- Resource version- Returns:
Resourceornullif 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()
-