Package com.atlassian.bamboo.plan
Class TriggerableInternalKeyImpl
- java.lang.Object
-
- com.atlassian.bamboo.plan.TriggerableInternalKeyImpl
-
- All Implemented Interfaces:
TriggerableInternalKey
@Internal public class TriggerableInternalKeyImpl extends Object implements TriggerableInternalKey
Helper class that carries around Chain/Environment id and lets easily get its instance from correct service.
-
-
Constructor Summary
Constructors Constructor Description TriggerableInternalKeyImpl(@NotNull PlanKey planKey)
TriggerableInternalKeyImpl(@NotNull PlanKey planKey, long stageId)
TriggerableInternalKeyImpl(@NotNull Triggerable triggerable)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
static TriggerableInternalKey
forEnvironmentId(long environmentId)
static TriggerableInternalKey
forPlanKey(@NotNull PlanKey planKey)
static TriggerableInternalKey
forStageId(@NotNull PlanKey planKey, long stageId)
@NotNull String
getKey()
@Nullable PlanKey
getPlanKey()
@Nullable Triggerable
getTriggerable()
int
hashCode()
String
toString()
-
-
-
Constructor Detail
-
TriggerableInternalKeyImpl
public TriggerableInternalKeyImpl(@NotNull @NotNull Triggerable triggerable)
-
TriggerableInternalKeyImpl
public TriggerableInternalKeyImpl(@NotNull @NotNull PlanKey planKey)
-
TriggerableInternalKeyImpl
public TriggerableInternalKeyImpl(@NotNull @NotNull PlanKey planKey, long stageId)
-
-
Method Detail
-
forEnvironmentId
public static TriggerableInternalKey forEnvironmentId(long environmentId)
-
forPlanKey
public static TriggerableInternalKey forPlanKey(@NotNull @NotNull PlanKey planKey)
-
forStageId
public static TriggerableInternalKey forStageId(@NotNull @NotNull PlanKey planKey, long stageId)
-
getKey
@NotNull public @NotNull String getKey()
- Specified by:
getKey
in interfaceTriggerableInternalKey
- Returns:
- a unique
String
identifier
-
getPlanKey
@Nullable public @Nullable PlanKey getPlanKey()
Description copied from interface:TriggerableInternalKey
- Specified by:
getPlanKey
in interfaceTriggerableInternalKey
- Returns:
-
getTriggerable
@Nullable public @Nullable Triggerable getTriggerable()
- Specified by:
getTriggerable
in interfaceTriggerableInternalKey
- Returns:
- Immutable instance of
Triggerable
represented by this key
-
-