@Immutable public interface IssueLabels
Modifier and Type | Interface and Description |
---|---|
static class |
IssueLabels.Smart
Smart IssueLabels with extra features.
|
Modifier and Type | Method and Description |
---|---|
void |
add(Iterable<String> labels)
Add new labels.
|
void |
clear()
Remove all labels.
|
Issue |
issue()
The issue we're in.
|
Iterable<Label> |
iterate()
Iterate them all.
|
void |
remove(String name)
Remove label by name.
|
void |
replace(Iterable<String> labels)
Replace all labels.
|
void add(@NotNull(message="iterable of label names can\'t be NULL") Iterable<String> labels) throws IOException
labels
- The labels to addIOException
- If there is any I/O problemvoid replace(@NotNull(message="iterable of label names can\'t be NULL") Iterable<String> labels) throws IOException
labels
- The labels to saveIOException
- If there is any I/O problem@NotNull(message="iterable is never NULL") Iterable<Label> iterate()
void remove(@NotNull(message="label name can\'t be NULL") String name) throws IOException
name
- Name of the label to removeIOException
- If there is any I/O problemvoid clear() throws IOException
IOException
- If there is any I/O problemCopyright © 2012–2014 jcabi.com. All rights reserved.