Class BranchImpl

    • Constructor Detail

      • BranchImpl

        public BranchImpl​(@NotNull
                          String branchName)
      • BranchImpl

        public BranchImpl​(@NotNull
                          String branchName,
                          @NotNull
                          String displayName)
    • Method Detail

      • getName

        @NotNull
        public String getName()
        Description copied from interface: Branch
        Returns the branch logical name
        Specified by:
        getName in interface Branch
        Returns:
        branch logical name
      • getDisplayName

        @NotNull
        public String getDisplayName()
        Specified by:
        getDisplayName in interface Branch
        Returns:
        branch display name, i.e. name to show to user
      • isDefaultBranch

        public boolean isDefaultBranch()
        Description copied from interface: Branch
        Returns true if this branch is default branch
        Specified by:
        isDefaultBranch in interface Branch
        Returns:
        true if this branch is default branch
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object