com.atlassian.bamboo.v2.build
Class BuildIdentifierImpl

java.lang.Object
  extended by com.atlassian.bamboo.v2.build.BuildIdentifierImpl
All Implemented Interfaces:
BuildIdentifier, java.io.Serializable
Direct Known Subclasses:
BuildContextImpl

public class BuildIdentifierImpl
extends java.lang.Object
implements BuildIdentifier

See Also:
Serialized Form

Constructor Summary
BuildIdentifierImpl(long planId, java.lang.String planKey, java.lang.String planName, int buildNumber)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 int getBuildNumber()
          The build number being built
 java.lang.String getBuildResultKey()
          Full build result key (e.g.
 long getPlanId()
           
 java.lang.String getPlanKey()
          Full plan key (e.g.
 java.lang.String getPlanName()
          The name of the plan
 PlanResultKey getPlanResultKey()
          Gets the PlanResultKey for the current BuildIdentifier
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BuildIdentifierImpl

public BuildIdentifierImpl(long planId,
                           java.lang.String planKey,
                           java.lang.String planName,
                           int buildNumber)
Method Detail

getPlanId

public long getPlanId()
Specified by:
getPlanId in interface BuildIdentifier
Returns:
Id of the plan.

getPlanKey

@NotNull
public java.lang.String getPlanKey()
Description copied from interface: BuildIdentifier
Full plan key (e.g. BAM-MAIN)

Specified by:
getPlanKey in interface BuildIdentifier
Returns:
Key for the plan BAM-MAIN @NotNull

getPlanName

@NotNull
public java.lang.String getPlanName()
Description copied from interface: BuildIdentifier
The name of the plan

Specified by:
getPlanName in interface BuildIdentifier
Returns:
name

getBuildNumber

public int getBuildNumber()
Description copied from interface: BuildIdentifier
The build number being built

Specified by:
getBuildNumber in interface BuildIdentifier
Returns:
int

getBuildResultKey

@NotNull
public java.lang.String getBuildResultKey()
Description copied from interface: BuildIdentifier
Full build result key (e.g. BAM-MAIN-100)

Specified by:
getBuildResultKey in interface BuildIdentifier
Returns:
Key for build result @NotNull

getPlanResultKey

@NotNull
public PlanResultKey getPlanResultKey()
Description copied from interface: BuildIdentifier
Gets the PlanResultKey for the current BuildIdentifier

Specified by:
getPlanResultKey in interface BuildIdentifier
Returns:
planResultKey

hashCode

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

equals

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


Copyright © 2010 Atlassian. All Rights Reserved.