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
@Entity public class BambooVcsBranchImpl extends BambooEntityObject implements BambooVcsBranch
-
-
Constructor Summary
Constructors Constructor Description BambooVcsBranchImpl()
BambooVcsBranchImpl(long id, @NotNull String name)
BambooVcsBranchImpl(long id, @NotNull String name, @Nullable Date detectedDeletionDate, long chainId)
BambooVcsBranchImpl(Chain chain, VcsBranch newBranch)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
@NotNull Chain
getChain()
Returns the master chain associated with the VCS branch.long
getChainId()
@Nullable Date
getDetectedDeletionDate()
@NotNull String
getName()
int
hashCode()
boolean
isEqualToBranchWith(@NotNull String otherName)
void
setChain(@NotNull Chain chain)
void
setChainId(@org.jetbrains.annotations.NotNull long chainId)
void
setDetectedDeletionDate(@Nullable Date detectedDeletionDate)
void
setName(@NotNull String name)
String
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 Detail
-
BambooVcsBranchImpl
public BambooVcsBranchImpl()
-
BambooVcsBranchImpl
public BambooVcsBranchImpl(long id, @NotNull @NotNull String name)
-
-
Method Detail
-
getChain
@NotNull public @NotNull 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 interfaceBambooVcsBranch
- Returns:
- master chain associated with the VCS branch
-
setChain
public void setChain(@NotNull @NotNull Chain chain)
- 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
@NotNull public @NotNull String getName()
- Specified by:
getName
in interfaceNameProvider
-
setName
public void setName(@NotNull @NotNull String name)
- Specified by:
setName
in interfaceBambooVcsBranch
-
getDetectedDeletionDate
@Nullable public @Nullable Date getDetectedDeletionDate()
- Specified by:
getDetectedDeletionDate
in interfaceBambooVcsBranch
-
setDetectedDeletionDate
public void setDetectedDeletionDate(@Nullable @Nullable Date detectedDeletionDate)
- Specified by:
setDetectedDeletionDate
in interfaceBambooVcsBranch
-
isEqualToBranchWith
public boolean isEqualToBranchWith(@NotNull @NotNull String otherName)
- Specified by:
isEqualToBranchWith
in interfaceBambooVcsBranch
- Returns:
- true if this object is equal to a branch with given properties.
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classcom.atlassian.core.bean.EntityObject
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classcom.atlassian.core.bean.EntityObject
-
-