Class Releases.Smart

java.lang.Object
com.jcabi.github.Releases.Smart
All Implemented Interfaces:
Releases
Enclosing interface:
Releases

@Immutable @Loggable(1) public static final class Releases.Smart extends Object implements Releases
Smart releases.
Since:
0.17
  • Constructor Details

    • Smart

      public Smart(Releases original)
      Public CTOR.
      Parameters:
      original - Original releases
  • Method Details

    • repo

      public Repo repo()
      Description copied from interface: Releases
      Owner of them.
      Specified by:
      repo in interface Releases
      Returns:
      Repo
    • iterate

      public Iterable<Release> iterate()
      Description copied from interface: Releases
      Iterate them all.
      Specified by:
      iterate in interface Releases
      Returns:
      Iterator of releases
      See Also:
    • get

      public Release get(int number)
      Description copied from interface: Releases
      Get a single release.
      Specified by:
      get in interface Releases
      Parameters:
      number - Release id
      Returns:
      Release
      See Also:
    • create

      public Release create(String tag) throws IOException
      Description copied from interface: Releases
      Create new release.
      Specified by:
      create in interface Releases
      Parameters:
      tag - The name of the tag
      Returns:
      Release just created
      Throws:
      IOException - If there is any I/O problem
      See Also:
    • remove

      public void remove(int number) throws IOException
      Description copied from interface: Releases
      Remove a release.
      Specified by:
      remove in interface Releases
      Parameters:
      number - ID of the release to remove.
      Throws:
      IOException - If an IO problem occurs.
      See Also:
    • exists

      public boolean exists(String tag) throws IOException
      This release exists by the tag.
      Parameters:
      tag - The tag
      Returns:
      TRUE if it already exists
      Throws:
      IOException - If fails
    • find

      public Release find(String tag) throws IOException
      Find release by the tag (runtime exception if not found).
      Parameters:
      tag - The tag
      Returns:
      Release found
      Throws:
      IOException - If fails