Package hudson.plugins.git
Class Tag
- java.lang.Object
-
- hudson.plugins.git.GitObject
-
- hudson.plugins.git.Tag
-
- All Implemented Interfaces:
Serializable
public class Tag extends GitObject
Git tag including SHA1 and message of the associated commit.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description String
commitMessage
Commit message of the tagged commitString
commitSHA1
SHA1 hash of the tagged commit
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
Indicates whether some other object is "equal to" this one.String
getCommitMessage()
Getter for the fieldcommitMessage
.String
getCommitSHA1()
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
-
-
-
-
Method Detail
-
getCommitMessage
public String getCommitMessage()
Getter for the fieldcommitMessage
.- Returns:
- a
String
object.
-
setCommitMessage
public void setCommitMessage(String commitMessage)
Setter for the fieldcommitMessage
.- Parameters:
commitMessage
- aString
object.
-
getCommitSHA1
public String getCommitSHA1()
Get the sha1 of the commit associated with this tag- Returns:
- a
String
object.
-
setCommitSHA1
public void setCommitSHA1(String commitSHA1)
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
public boolean equals(Object obj)
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.
-
-