Package org.forgerock.api.models
Class VersionedPath
- java.lang.Object
 - 
- org.forgerock.api.models.VersionedPath
 
 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVersionedPath.BuilderBuilder to help construct the VersionedPath. 
- 
Field Summary
Fields Modifier and Type Field Description static VersionUNVERSIONEDVersion0.0represents null/empty, for when resource versions are not required by an API (e.g., OpenIDM). 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Resourceget(Version version)Gets theResourcefor a given version.protected Map<Version,Resource>getPaths()Gets aMapof versions toResources.Set<Version>getVersions()Returns all resource-versions on this path.inthashCode()static VersionedPath.BuilderversionedPath()Create a new Builder for VersionedPath. 
 - 
 
- 
- 
Field Detail
- 
UNVERSIONED
public static final Version UNVERSIONED
Version0.0represents null/empty, for when resource versions are not required by an API (e.g., OpenIDM). 
 - 
 
- 
Method Detail
- 
getPaths
protected Map<Version,Resource> getPaths()
Gets aMapof versions toResources. This method is currently only used for JSON serialization.- Returns:
 Mapof versions toResources.
 
- 
get
public Resource get(Version version)
Gets theResourcefor a given version.- Parameters:
 version- Resource version- Returns:
 Resourceornullif 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
 
 
 - 
 
 -