Package 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
,NameProvider
,Cloneable
-
Constructor Summary
ConstructorDescriptionBambooVcsBranchImpl
(long id, @NotNull String name) BambooVcsBranchImpl
(long id, @NotNull String name, @Nullable Date detectedDeletionDate, long chainId) BambooVcsBranchImpl
(Chain chain, VcsBranch newBranch) -
Method Summary
Modifier and TypeMethodDescriptionboolean
@NotNull Chain
getChain()
Returns the master chain associated with the VCS branch.long
@Nullable Date
@NotNull String
getName()
int
hashCode()
boolean
isEqualToBranchWith
(@NotNull String otherName) void
void
setChainId
(@org.jetbrains.annotations.NotNull long chainId) void
setDetectedDeletionDate
(@Nullable Date detectedDeletionDate) void
toString()
Methods inherited from class com.atlassian.core.bean.EntityObject
clone, getCreationDate, getCurrentDate, getId, getLastModificationDate, setClock, setCreationDate, setId, setLastModificationDate
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.atlassian.bamboo.core.BambooIdProvider
getId
Methods inherited from interface com.atlassian.bamboo.core.BambooObject
setId
-
Constructor Details
-
BambooVcsBranchImpl
public BambooVcsBranchImpl() -
BambooVcsBranchImpl
-
BambooVcsBranchImpl
-
BambooVcsBranchImpl
-
-
Method Details
-
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 interfaceBambooVcsBranch
- Returns:
- master chain associated with the VCS branch
-
setChain
- Specified by:
setChain
in interfaceBambooVcsBranch
-
getChainId
public long getChainId()- Specified by:
getChainId
in interfaceBambooVcsBranch
-
setChainId
public void setChainId(@NotNull @org.jetbrains.annotations.NotNull long chainId) - Specified by:
setChainId
in interfaceBambooVcsBranch
-
getName
- Specified by:
getName
in interfaceNameProvider
-
setName
- Specified by:
setName
in interfaceBambooVcsBranch
-
getDetectedDeletionDate
- Specified by:
getDetectedDeletionDate
in interfaceBambooVcsBranch
-
setDetectedDeletionDate
- Specified by:
setDetectedDeletionDate
in interfaceBambooVcsBranch
-
isEqualToBranchWith
- Specified by:
isEqualToBranchWith
in interfaceBambooVcsBranch
- Returns:
- true if this object is equal to a branch with given properties.
-
equals
- Overrides:
equals
in classcom.atlassian.core.bean.EntityObject
-
hashCode
public int hashCode()- Overrides:
hashCode
in classcom.atlassian.core.bean.EntityObject
-
toString
-