@ExportedBean(defaultVisibility=999) public class GitObject extends Object implements Serializable
| Constructor and Description |
|---|
GitObject(String name,
ObjectId sha1)
Constructor for GitObject, a named SHA1 (tag, branch, etc.).
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
String |
getName()
Returns the name of this git object (branch name, tag name, etc.).
|
ObjectId |
getSHA1()
Returns the SHA1 hash of this git object as an
ObjectId. |
String |
getSHA1String()
Returns the SHA1 hash of this git object as a String.
|
int |
hashCode()
Returns a hash code value for the object.
|
public ObjectId getSHA1()
ObjectId.ObjectId SHA1 of the object.@Exported public String getName()
String name of the object.@Exported(name="SHA1") public String getSHA1String()
String SHA1 of the object.public int hashCode()
public boolean equals(Object obj)
Copyright © 2013–2020. All rights reserved.