Package hudson.plugins.git
Class Branch
java.lang.Object
hudson.plugins.git.GitObject
hudson.plugins.git.Branch
- All Implemented Interfaces:
Serializable
Represents a git branch.
- See Also:
-
Constructor Summary
-
Method Summary
Methods inherited from class hudson.plugins.git.GitObject
getName, getSHA1, getSHA1String
-
Constructor Details
-
Branch
Constructor for Branch.- Parameters:
name
- branch namesha1
- object ID to which branch name points
-
Branch
public Branch(org.eclipse.jgit.lib.Ref candidate) Constructor for Branch.- Parameters:
candidate
- reference to which branch points (or should point)
-
-
Method Details
-
toString
Returns branch name and SHA1 hash. -
hashCode
public int hashCode()Returns a hash code value for the object. Considers sha1 and name in the calculation. -
equals
Indicates whether some other object is "equal to" this one. Includes sha1 and name in the comparison. Objects of subclasses of this object are not equal to objects of this class, even if they add no fields.
-