public class BranchInfo
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Returns information about a branch.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
branchName
The name of the branch.
|
private java.lang.String |
commitId
The ID of the last commit made to the branch.
|
Constructor and Description |
---|
BranchInfo() |
Modifier and Type | Method and Description |
---|---|
BranchInfo |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getBranchName()
The name of the branch.
|
java.lang.String |
getCommitId()
The ID of the last commit made to the branch.
|
int |
hashCode() |
void |
setBranchName(java.lang.String branchName)
The name of the branch.
|
void |
setCommitId(java.lang.String commitId)
The ID of the last commit made to the branch.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
BranchInfo |
withBranchName(java.lang.String branchName)
The name of the branch.
|
BranchInfo |
withCommitId(java.lang.String commitId)
The ID of the last commit made to the branch.
|
private java.lang.String branchName
The name of the branch.
private java.lang.String commitId
The ID of the last commit made to the branch.
public void setBranchName(java.lang.String branchName)
The name of the branch.
branchName
- The name of the branch.public java.lang.String getBranchName()
The name of the branch.
public BranchInfo withBranchName(java.lang.String branchName)
The name of the branch.
branchName
- The name of the branch.public void setCommitId(java.lang.String commitId)
The ID of the last commit made to the branch.
commitId
- The ID of the last commit made to the branch.public java.lang.String getCommitId()
The ID of the last commit made to the branch.
public BranchInfo withCommitId(java.lang.String commitId)
The ID of the last commit made to the branch.
commitId
- The ID of the last commit made to the branch.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public BranchInfo clone()
clone
in class java.lang.Object