Package com.atlassian.bamboo.plan.branch
Class VcsBranchImpl
- java.lang.Object
-
- com.atlassian.bamboo.plan.branch.VcsBranchImpl
-
- All Implemented Interfaces:
VcsBranch
,NameProvider
,Serializable
@PublicApi public class VcsBranchImpl extends Object implements Serializable, VcsBranch
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
VcsBranchImpl()
VcsBranchImpl(@NotNull VcsBranch other)
VcsBranchImpl(@NotNull String name)
Can be used in specific repository implementation.VcsBranchImpl(@NotNull String name, @NotNull String displayName)
Can be used in specific repository implementation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
@NotNull String
getDisplayName()
This one is important in svn, where vcs branch name is whole path and display name would be only last part of it.@NotNull String
getName()
int
hashCode()
boolean
isEqualToBranchWith(@NotNull String otherName)
String
toString()
-
-
-
Constructor Detail
-
VcsBranchImpl
protected VcsBranchImpl()
-
VcsBranchImpl
public VcsBranchImpl(@NotNull @NotNull String name)
Can be used in specific repository implementation. For general usage tryVcsBranchConfigurator.createVcsBranchFromName(String)
- Parameters:
name
-
-
VcsBranchImpl
public VcsBranchImpl(@NotNull @NotNull String name, @NotNull @NotNull String displayName)
Can be used in specific repository implementation. For general usage tryVcsBranchConfigurator.createVcsBranchFromName(String)
- Parameters:
name
-displayName
-
-
VcsBranchImpl
public VcsBranchImpl(@NotNull @NotNull VcsBranch other)
-
-
Method Detail
-
getName
@NotNull public @NotNull String getName()
- Specified by:
getName
in interfaceNameProvider
- Specified by:
getName
in interfaceVcsBranch
-
getDisplayName
@NotNull public @NotNull String getDisplayName()
Description copied from interface:VcsBranch
This one is important in svn, where vcs branch name is whole path and display name would be only last part of it. For repositories like git both are the same.- Specified by:
getDisplayName
in interfaceVcsBranch
-
isEqualToBranchWith
public boolean isEqualToBranchWith(@NotNull @NotNull String otherName)
- Specified by:
isEqualToBranchWith
in interfaceVcsBranch
- Returns:
- true if this object is equal to a branch with given properties.
-
-