Releases.Smart
Constructor and Description |
---|
Releases.Smart(Releases original)
Public CTOR.
|
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 Iterable<Release> iterate()
Releases
public Release get(int number)
Releases
get
in interface Releases
number
- Release idpublic Release create(String tag) throws IOException
Releases
create
in interface Releases
tag
- The name of the tagIOException
- If there is any I/O problempublic void remove(int number) throws IOException
Releases
remove
in interface Releases
number
- 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–2014 jcabi.com. All rights reserved.