Releases.Smart| Modifier and Type | Method and Description |
|---|---|
Release |
create(String tag)
Create new release.
|
boolean |
exists(String tag)
This release exists by the tag.
|
Release |
find(String tag)
Find release by the tag (runtime exception if not found).
|
Release |
get(int number)
Get a single release.
|
Iterable<Release> |
iterate()
Iterate them all.
|
void |
remove(int number)
Remove a release.
|
Repo |
repo()
Owner of them.
|
public Smart(Releases original)
original - Original releasespublic Iterable<Release> iterate()
Releasespublic Release get(int number)
Releasesget in interface Releasesnumber - Release idpublic Release create(String tag) throws IOException
Releasescreate in interface Releasestag - The name of the tagIOException - If there is any I/O problempublic void remove(int number)
throws IOException
Releasesremove in interface Releasesnumber - ID of the release to remove.IOException - If an IO problem occurs.public boolean exists(String tag) throws IOException
tag - The tagIOException - If failspublic Release find(String tag) throws IOException
tag - The tagIOException - If failsCopyright © 2012–2018 jcabi.com. All rights reserved.