Package com.jcabi.github
Class Releases.Smart
- java.lang.Object
-
- com.jcabi.github.Releases.Smart
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.jcabi.github.Releases
Releases.Smart
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Releasecreate(String tag)Create new release.booleanexists(String tag)This release exists by the tag.Releasefind(String tag)Find release by the tag (runtime exception if not found).Releaseget(int number)Get a single release.Iterable<Release>iterate()Iterate them all.voidremove(int number)Remove a release.Reporepo()Owner of them.
-
-
-
Constructor Detail
-
Smart
public Smart(Releases original)
Public CTOR.- Parameters:
original- Original releases
-
-
Method Detail
-
iterate
public Iterable<Release> iterate()
Description copied from interface:ReleasesIterate them all.
-
get
public Release get(int number)
Description copied from interface:ReleasesGet a single release.- Specified by:
getin interfaceReleases- Parameters:
number- Release id- Returns:
- Release
- See Also:
- Get a single release
-
create
public Release create(String tag) throws IOException
Description copied from interface:ReleasesCreate new release.- Specified by:
createin interfaceReleases- Parameters:
tag- The name of the tag- Returns:
- Release just created
- Throws:
IOException- If there is any I/O problem- See Also:
- Create an Release
-
remove
public void remove(int number) throws IOExceptionDescription copied from interface:ReleasesRemove a release.- Specified by:
removein interfaceReleases- Parameters:
number- ID of the release to remove.- Throws:
IOException- If an IO problem occurs.- See Also:
- Delete a release.
-
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
-
-