Class BambooVcsBranchImpl

    • Constructor Detail

      • BambooVcsBranchImpl

        public BambooVcsBranchImpl()
      • BambooVcsBranchImpl

        public BambooVcsBranchImpl​(Chain chain,
                                   VcsBranch newBranch)
      • BambooVcsBranchImpl

        public BambooVcsBranchImpl​(long id,
                                   @NotNull
                                   @NotNull String name)
      • BambooVcsBranchImpl

        public BambooVcsBranchImpl​(long id,
                                   @NotNull
                                   @NotNull String name,
                                   @Nullable
                                   @Nullable Date detectedDeletionDate,
                                   long chainId)
    • 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 interface BambooVcsBranch
        Returns:
        master chain associated with the VCS branch
      • setChainId

        public void setChainId​(@NotNull
                               @org.jetbrains.annotations.NotNull long chainId)
        Specified by:
        setChainId in interface BambooVcsBranch
      • isEqualToBranchWith

        public boolean isEqualToBranchWith​(@NotNull
                                           @NotNull String otherName)
        Specified by:
        isEqualToBranchWith in interface BambooVcsBranch
        Returns:
        true if this object is equal to a branch with given properties.
      • equals

        public boolean equals​(Object o)
        Overrides:
        equals in class com.atlassian.core.bean.EntityObject
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class com.atlassian.core.bean.EntityObject