Package com.sodius.oslc.server.trs.model
Class ResourceSeed
java.lang.Object
com.sodius.oslc.server.trs.model.ResourceSeed
Encapsulates the minimal information required to build a tracked resource URL.
- Since:
- 1.10.0
-
Method Summary
Modifier and TypeMethodDescriptionbooleangetId()Gets the underlying id of the resource this seed represents.Get the underlying id of the project area, if any, to which the resource belongs to.intgetType()Gets the resource type this seed represents.inthashCode()static ResourceSeedConstructs an instance from a resource id and type.toString()
-
Method Details
-
of
Constructs an instance from a resource id and type.- Parameters:
id- underlying resource id.type- underlying resource type (id).projectAreaId- underlying, optional, project area (id).- Returns:
- corresponding instance.
- Since:
- 3.3.0
-
getId
Gets the underlying id of the resource this seed represents.- Returns:
- the underlying id of the resource this seed represents.
-
getType
public int getType()Gets the resource type this seed represents.- Returns:
- the resource type this seed represents.
-
getProjectAreaId
Get the underlying id of the project area, if any, to which the resource belongs to.- Returns:
- the optional project area id.
- Since:
- 3.3.0
-
hashCode
public int hashCode() -
equals
-
toString
-