Class PlanResultKey

java.lang.Object
com.atlassian.bamboo.plan.PlanResultKey
All Implemented Interfaces:
Key, ResultKey, Serializable
Direct Known Subclasses:
DeploymentResultKeyAsPlanResultKey

@Immutable @PublicApi public class PlanResultKey extends Object implements ResultKey, Serializable
Identifier for result objects such as ChainResultsSummary and BuildResultsSummary Can be created from PlanKeys
See Also:
  • Method Details

    • getPlanKey

      @NotNull public @NotNull PlanKey getPlanKey()
      Returns the key component of this PlanResultKey
      Returns:
      planKey
    • getEntityKey

      @NotNull public @NotNull Key getEntityKey()
      Description copied from interface: ResultKey
      What is this a result of.
      Specified by:
      getEntityKey in interface ResultKey
      Returns:
    • getBuildNumber

      public int getBuildNumber()
      The build number being built
      Returns:
      int
    • getResultNumber

      public int getResultNumber()
      Specified by:
      getResultNumber in interface ResultKey
      Returns:
      Result number
    • getResultNumberLong

      public long getResultNumberLong()
      Specified by:
      getResultNumberLong in interface ResultKey
      Returns:
      Result number
    • getKey

      @NotNull public @NotNull String getKey()
      Full build result key (e.g. BAM-MAIN-100)
      Specified by:
      getKey in interface Key
      Specified by:
      getKey in interface ResultKey
      Returns:
      Key for build result
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object