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 StringcommitMessageCommit message of the tagged commitStringcommitSHA1SHA1 hash of the tagged commit
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Indicates whether some other object is "equal to" this one.StringgetCommitMessage()Getter for the fieldcommitMessage.StringgetCommitSHA1()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
-
-
-
-
Method Detail
-
getCommitMessage
public String getCommitMessage()
Getter for the fieldcommitMessage.- Returns:
- a
Stringobject.
-
setCommitMessage
public void setCommitMessage(String commitMessage)
Setter for the fieldcommitMessage.- Parameters:
commitMessage- aStringobject.
-
getCommitSHA1
public String getCommitSHA1()
Get the sha1 of the commit associated with this tag- Returns:
- a
Stringobject.
-
setCommitSHA1
public void setCommitSHA1(String commitSHA1)
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
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.
-
-