Class BranchDetails

java.lang.Object
sonia.scm.repository.BranchDetails

public class BranchDetails extends Object
Represents details of a branch that are not computed by default for a Branch.
Since:
2.28.0
  • Constructor Details

    • BranchDetails

      public BranchDetails(String branchName)
      Create the details object without further details.
      Parameters:
      branchName - The name of the branch these details are for.
    • BranchDetails

      public BranchDetails(String branchName, Integer changesetsAhead, Integer changesetsBehind)
      Creates the details object with ahead/behind counts.
      Parameters:
      branchName - The name of the branch these details are for.
      changesetsAhead - The number of changesets this branch is ahead of the default branch (that is the number of changesets on this branch that are not reachable from the default branch).
      changesetsBehind - The number of changesets the default branch is ahead of this branch (that is
  • Method Details

    • getBranchName

      public String getBranchName()
      The name of the branch these details are for.
    • getChangesetsAhead

      public Optional<Integer> getChangesetsAhead()
      The number of changesets this branch is ahead of the default branch (that is the number of changesets on this branch that are not reachable from the default branch).
    • getChangesetsBehind

      public Optional<Integer> getChangesetsBehind()
      The number of changesets the default branch is ahead of this branch (that is the number of changesets on the default branch that are not reachable from this branch).