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
Modifier and TypeFieldDescriptionCommit message of the tagged commitSHA1 hash of the tagged commit -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Indicates whether some other object is "equal to" this one.Getter for the fieldcommitMessage
.Get the sha1 of the commit associated with this tagint
hashCode()
Returns a hash code value for the object.void
setCommitMessage
(String commitMessage) Setter for the fieldcommitMessage
.void
setCommitSHA1
(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
- aString
object.sha1
- aObjectId
object.
-
-
Method Details
-
getCommitMessage
Getter for the fieldcommitMessage
.- Returns:
- a
String
object.
-
setCommitMessage
Setter for the fieldcommitMessage
.- Parameters:
commitMessage
- aString
object.
-
getCommitSHA1
Get the sha1 of the commit associated with this tag- Returns:
- a
String
object.
-
setCommitSHA1
Setter for the fieldcommitSHA1
.- Parameters:
commitSHA1
- aString
object.
-
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.
-