public class GetBranchResult
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Represents the output of a get branch operation.
Modifier and Type | Field and Description |
---|---|
private BranchInfo |
branch
The name of the branch.
|
Constructor and Description |
---|
GetBranchResult() |
Modifier and Type | Method and Description |
---|---|
GetBranchResult |
clone() |
boolean |
equals(java.lang.Object obj) |
BranchInfo |
getBranch()
The name of the branch.
|
int |
hashCode() |
void |
setBranch(BranchInfo branch)
The name of the branch.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
GetBranchResult |
withBranch(BranchInfo branch)
The name of the branch.
|
private BranchInfo branch
The name of the branch.
public void setBranch(BranchInfo branch)
The name of the branch.
branch
- The name of the branch.public BranchInfo getBranch()
The name of the branch.
public GetBranchResult withBranch(BranchInfo branch)
The name of the branch.
branch
- The name of 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 GetBranchResult clone()
clone
in class java.lang.Object