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.ReleasesReleases.Smart
 
- 
 - 
Method SummaryAll 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- 
Smartpublic Smart(Releases original) Public CTOR.- Parameters:
- original- Original releases
 
 
- 
 - 
Method Detail- 
iteratepublic Iterable<Release> iterate() Description copied from interface:ReleasesIterate them all.
 - 
getpublic Release get(int number) Description copied from interface:ReleasesGet a single release.- Specified by:
- getin interface- Releases
- Parameters:
- number- Release id
- Returns:
- Release
- See Also:
- Get a single release
 
 - 
createpublic Release create(String tag) throws IOException Description copied from interface:ReleasesCreate new release.- Specified by:
- createin interface- Releases
- 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
 
 - 
removepublic void remove(int number) throws IOExceptionDescription copied from interface:ReleasesRemove a release.- Specified by:
- removein interface- Releases
- Parameters:
- number- ID of the release to remove.
- Throws:
- IOException- If an IO problem occurs.
- See Also:
- Delete a release.
 
 - 
existspublic 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
 
 - 
findpublic 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
 
 
- 
 
-