Class Tags

java.lang.Object
sonia.scm.repository.Tags
All Implemented Interfaces:
Iterable<Tag>

public final class Tags extends Object implements Iterable<Tag>
Represents all tags of a repository.
Since:
1.18
  • Constructor Details

    • Tags

      public Tags()
    • Tags

      public Tags(List<Tag> tags)
  • Method Details

    • iterator

      public Iterator<Tag> iterator()
      Specified by:
      iterator in interface Iterable<Tag>
    • getTagByName

      public Tag getTagByName(String name)
      Returns the Tag with the given name or null.
    • getTagByRevision

      public Tag getTagByRevision(String revision)
      Returns the Tag with the given revision or null.
    • getTags

      public List<Tag> getTags()
      Returns all tags of a repository.