com.atlassian.bamboo.plan.branch
Class BambooVcsBranchImpl

java.lang.Object
  extended by com.atlassian.core.bean.EntityObject
      extended by com.atlassian.bamboo.core.BambooEntityObject
          extended by com.atlassian.bamboo.plan.branch.BambooVcsBranchImpl
All Implemented Interfaces:
BambooIdProvider, BambooObject, BambooVcsBranch, VcsBranch, NameProvider, Serializable, Cloneable

public class BambooVcsBranchImpl
extends BambooEntityObject
implements BambooVcsBranch

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.atlassian.bamboo.core.BambooEntityObject
id
 
Constructor Summary
BambooVcsBranchImpl()
           
BambooVcsBranchImpl(Chain chain, VcsBranch newBranch)
           
BambooVcsBranchImpl(long id, String name)
           
BambooVcsBranchImpl(long id, String name, Date detectedDeletionDate, long chainId)
           
 
Method Summary
 boolean equals(Object o)
          This method needs to be here in order to use proper id
 Chain getChain()
          Returns the master chain associated with the VCS branch.
 long getChainId()
           
 Date getDetectedDeletionDate()
           
 String getName()
           
 int hashCode()
          This method needs to be here in order to use proper id
 boolean isEqualToBranchWith(String otherName)
           
 void setChain(Chain chain)
           
 void setChainId(long chainId)
           
 void setDetectedDeletionDate(Date detectedDeletionDate)
           
 void setName(String name)
           
 String toString()
           
 
Methods inherited from class com.atlassian.bamboo.core.BambooEntityObject
getId, setId
 
Methods inherited from class com.atlassian.core.bean.EntityObject
clone, getCreationDate, getCurrentDate, getLastModificationDate, setClock, setCreationDate, setLastModificationDate
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.atlassian.bamboo.core.BambooObject
setId
 
Methods inherited from interface com.atlassian.bamboo.core.BambooIdProvider
getId
 

Constructor Detail

BambooVcsBranchImpl

public BambooVcsBranchImpl()

BambooVcsBranchImpl

public BambooVcsBranchImpl(Chain chain,
                           VcsBranch newBranch)

BambooVcsBranchImpl

public BambooVcsBranchImpl(long id,
                           @NotNull
                           String name)

BambooVcsBranchImpl

public BambooVcsBranchImpl(long id,
                           @NotNull
                           String name,
                           @Nullable
                           Date detectedDeletionDate,
                           long chainId)
Method Detail

getChain

@NotNull
public Chain getChain()
Description copied from interface: BambooVcsBranch
Returns the master chain associated with the VCS branch. Depending on how it is retrieved, the value could not be set though.

Specified by:
getChain in interface BambooVcsBranch
Returns:
master chain associated with the VCS branch

setChain

public void setChain(@NotNull
                     Chain chain)
Specified by:
setChain in interface BambooVcsBranch

getChainId

public long getChainId()
Specified by:
getChainId in interface BambooVcsBranch

setChainId

public void setChainId(@NotNull
                       long chainId)
Specified by:
setChainId in interface BambooVcsBranch

getName

@NotNull
public String getName()
Specified by:
getName in interface VcsBranch
Specified by:
getName in interface NameProvider

setName

public void setName(@NotNull
                    String name)
Specified by:
setName in interface BambooVcsBranch

getDetectedDeletionDate

@Nullable
public Date getDetectedDeletionDate()
Specified by:
getDetectedDeletionDate in interface BambooVcsBranch

setDetectedDeletionDate

public void setDetectedDeletionDate(@Nullable
                                    Date detectedDeletionDate)
Specified by:
setDetectedDeletionDate in interface BambooVcsBranch

isEqualToBranchWith

public boolean isEqualToBranchWith(@NotNull
                                   String otherName)
Specified by:
isEqualToBranchWith in interface VcsBranch
Returns:
true if this object is equal to a branch with given properties.

equals

public boolean equals(Object o)
Description copied from class: BambooEntityObject
This method needs to be here in order to use proper id

Overrides:
equals in class BambooEntityObject

hashCode

public int hashCode()
Description copied from class: BambooEntityObject
This method needs to be here in order to use proper id

Overrides:
hashCode in class BambooEntityObject

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.