Package com.atlassian.bamboo.plan.branch
Class VcsBranchImpl
java.lang.Object
com.atlassian.bamboo.plan.branch.VcsBranchImpl
- All Implemented Interfaces:
VcsBranch
,NameProvider
,Serializable
- See Also:
-
Constructor Summary
ModifierConstructorDescriptionprotected
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
-
Constructor Details
-
VcsBranchImpl
protected VcsBranchImpl() -
VcsBranchImpl
Can be used in specific repository implementation. For general usage tryVcsBranchConfigurator.createVcsBranchFromName(String)
- Parameters:
name
-
-
VcsBranchImpl
Can be used in specific repository implementation. For general usage tryVcsBranchConfigurator.createVcsBranchFromName(String)
- Parameters:
name
-displayName
-
-
VcsBranchImpl
-
-
Method Details
-
getName
- Specified by:
getName
in interfaceNameProvider
- Specified by:
getName
in interfaceVcsBranch
-
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
- Specified by:
isEqualToBranchWith
in interfaceVcsBranch
- Returns:
- true if this object is equal to a branch with given properties.
-
equals
-
hashCode
public int hashCode() -
toString
-