Class Branch

java.lang.Object
ink.icoding.github4j.model.Branch

public class Branch extends Object
分支信息,对应GitHub仓库中的分支。
  • Constructor Details

    • Branch

      public Branch()
  • Method Details

    • getName

      public String getName()
    • setName

      public void setName(String name)
    • getCommit

      public Commit getCommit()
    • setCommit

      public void setCommit(Commit commit)
    • isProtected

      public boolean isProtected()
    • setProtected

      public void setProtected(boolean isProtected)
    • getProtection

      public Branch.BranchProtectionLinks getProtection()
    • setProtection

      public void setProtection(Branch.BranchProtectionLinks protection)