com.atlassian.bamboo.plan
Class TriggerableInternalKeyImpl

java.lang.Object
  extended by com.atlassian.bamboo.plan.TriggerableInternalKeyImpl
All Implemented Interfaces:
TriggerableInternalKey

@Internal
public class TriggerableInternalKeyImpl
extends java.lang.Object
implements TriggerableInternalKey

Helper class that carries around Chain/Environment id and lets easily get its instance from correct service.


Constructor Summary
TriggerableInternalKeyImpl(PlanKey planKey)
           
TriggerableInternalKeyImpl(Triggerable triggerable)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getKey()
           
 PlanKey getPlanKey()
          Returns a PlanKey associated with this key if the source is actually a Plan
 Triggerable getTriggerable()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TriggerableInternalKeyImpl

public TriggerableInternalKeyImpl(@NotNull
                                  Triggerable triggerable)

TriggerableInternalKeyImpl

public TriggerableInternalKeyImpl(@NotNull
                                  PlanKey planKey)
Method Detail

getKey

@NotNull
public java.lang.String getKey()
Specified by:
getKey in interface TriggerableInternalKey
Returns:
a unique String identifier

getPlanKey

@Nullable
public PlanKey getPlanKey()
Description copied from interface: TriggerableInternalKey
Returns a PlanKey associated with this key if the source is actually a Plan

Specified by:
getPlanKey in interface TriggerableInternalKey
Returns:

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getTriggerable

@Nullable
public Triggerable getTriggerable()
Specified by:
getTriggerable in interface TriggerableInternalKey
Returns:
Immutable instance of Triggerable represented by this key

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object


Copyright © 2014 Atlassian Software Systems Pty Ltd. All Rights Reserved.