@Immutable
public interface Labels
Modifier and Type | Interface and Description |
---|---|
static class |
Labels.Smart
Smart Labels with extra features.
|
Modifier and Type | Method and Description |
---|---|
Label |
create(String name,
String color)
Create new label.
|
void |
delete(String name)
Delete label by name.
|
Label |
get(String name)
Get a label by name.
|
Iterable<Label> |
iterate()
Iterate them all.
|
Repo |
repo()
The repo we're in.
|
Repo repo()
Label create(String name, String color) throws IOException
name
- The name of itcolor
- Color of itIOException
- If there is any I/O problemLabel get(String name)
name
- The name of itIterable<Label> iterate()
void delete(String name) throws IOException
name
- Name of the label to removeIOException
- If there is any I/O problemCopyright © 2012–2018 jcabi.com. All rights reserved.