Class JGitTag

  • All Implemented Interfaces:
    GitTag

    class JGitTag
    extends Object
    implements GitTag
    Wrapper around JGit's RevTag object to represent a Git tag
    Author:
    Sebastian Staudt
    • Constructor Detail

      • JGitTag

        JGitTag​(RevTag tag)
        Creates a new instance from a JGit tag object
        Parameters:
        tag - The tag object to wrap
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getDate

        public Date getDate()
        Description copied from interface: GitTag
        Returns the date when this tag has been created
        Specified by:
        getDate in interface GitTag
        Returns:
        The creation date of this tag
      • getName

        public String getName()
        Description copied from interface: GitTag
        Returns the name of this tag
        Specified by:
        getName in interface GitTag
        Returns:
        The name of this tag
      • getTimeZone

        public TimeZone getTimeZone()
        Description copied from interface: GitTag
        Returns the timezone in which this tag has been created
        Specified by:
        getTimeZone in interface GitTag
        Returns:
        The timezone of this tag