com.atlassian.bamboo.plan.branch
Class BambooVcsBranchImpl
java.lang.Object
com.atlassian.core.bean.EntityObject
com.atlassian.bamboo.core.BambooEntityObject
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
Methods inherited from class com.atlassian.core.bean.EntityObject |
clone, getCreationDate, getCurrentDate, getLastModificationDate, setClock, setCreationDate, setLastModificationDate |
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)
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.