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:
  • Constructor Details

  • Method Details

    • getName

      @NotNull public @NotNull String getName()
      Specified by:
      getName in interface NameProvider
      Specified by:
      getName in interface VcsBranch
    • 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 interface VcsBranch
    • isEqualToBranchWith

      public boolean isEqualToBranchWith(@NotNull @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)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object