Package hudson.plugins.git
Class Tag
java.lang.Object
hudson.plugins.git.GitObject
hudson.plugins.git.Tag
- All Implemented Interfaces:
Serializable
Git tag including SHA1 and message of the associated commit.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionCommit message of the tagged commitSHA1 hash of the tagged commit -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.Getter for the fieldcommitMessage.Get the sha1 of the commit associated with this taginthashCode()Returns a hash code value for the object.voidsetCommitMessage(String commitMessage) Setter for the fieldcommitMessage.voidsetCommitSHA1(String commitSHA1) Setter for the fieldcommitSHA1.Methods inherited from class hudson.plugins.git.GitObject
getName, getSHA1, getSHA1String
-
Field Details
-
commitSHA1
SHA1 hash of the tagged commit -
commitMessage
Commit message of the tagged commit
-
-
Constructor Details
-
Tag
Constructor for Tag.- Parameters:
name- aStringobject.sha1- aObjectIdobject.
-
-
Method Details
-
getCommitMessage
Getter for the fieldcommitMessage.- Returns:
- a
Stringobject.
-
setCommitMessage
Setter for the fieldcommitMessage.- Parameters:
commitMessage- aStringobject.
-
getCommitSHA1
Get the sha1 of the commit associated with this tag- Returns:
- a
Stringobject.
-
setCommitSHA1
Setter for the fieldcommitSHA1.- Parameters:
commitSHA1- aStringobject.
-
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.
-