public class Branch extends GitObject
| Constructor and Description |
|---|
Branch(Ref candidate)
Constructor for Branch.
|
Branch(String name,
ObjectId sha1)
Constructor for Branch.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
int |
hashCode()
Returns a hash code value for the object.
|
String |
toString()
Returns branch name and SHA1 hash.
|
getName, getSHA1, getSHA1Stringpublic Branch(String name, ObjectId sha1)
name - branch namesha1 - object ID to which branch name pointspublic Branch(Ref candidate)
candidate - reference to which branch points (or should point)public String toString()
public int hashCode()
public boolean equals(Object obj)
Copyright © 2013–2020. All rights reserved.