Class IndexedVersionImpl
- java.lang.Object
-
- com.atlassian.bamboo.deployments.versions.index.IndexedVersionImpl
-
- All Implemented Interfaces:
IndexedVersion
,CreationDateProvider
public class IndexedVersionImpl extends Object implements IndexedVersion
-
-
Field Summary
-
Fields inherited from interface com.atlassian.bamboo.utils.CreationDateProvider
ORDERING
-
-
Constructor Summary
Constructors Constructor Description IndexedVersionImpl(@NotNull DeploymentVersion deploymentVersion, @Nullable PlanResultKey planResultKey, @NotNull List<DeploymentVersionLinkedJiraIssue> issues)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Date
getCreationDate()
long
getId()
String
getName()
@NotNull String
getPlanBranchName()
PlanResultKey
getPlanResultKey()
long
getProjectId()
int
hashCode()
-
-
-
Constructor Detail
-
IndexedVersionImpl
public IndexedVersionImpl(@NotNull @NotNull DeploymentVersion deploymentVersion, @Nullable @Nullable PlanResultKey planResultKey, @NotNull @NotNull List<DeploymentVersionLinkedJiraIssue> issues)
-
-
Method Detail
-
getId
public long getId()
- Specified by:
getId
in interfaceIndexedVersion
- Returns:
- id of the version
-
getName
public String getName()
- Specified by:
getName
in interfaceIndexedVersion
- Returns:
- The name of the version
-
getPlanResultKey
public PlanResultKey getPlanResultKey()
- Specified by:
getPlanResultKey
in interfaceIndexedVersion
- Returns:
- the plan result key of the result that was used to create this version
-
getCreationDate
public Date getCreationDate()
- Specified by:
getCreationDate
in interfaceCreationDateProvider
- Specified by:
getCreationDate
in interfaceIndexedVersion
- Returns:
- date that the version was created
-
getProjectId
public long getProjectId()
- Specified by:
getProjectId
in interfaceIndexedVersion
- Returns:
- id of the project the version belongs to.
-
getPlanBranchName
@NotNull public @NotNull String getPlanBranchName()
- Specified by:
getPlanBranchName
in interfaceIndexedVersion
- Returns:
- name of branch the version is created from
-
-