@Immutable public interface Gists
Modifier and Type | Method and Description |
---|---|
Gist |
create(Map<String,String> files,
boolean visible)
Create a new gist.
|
Gist |
get(String name)
Get gist by name.
|
Github |
github()
Github we're in.
|
Iterable<Gist> |
iterate()
Iterate all gists.
|
void |
remove(String identifier)
Removes a gist by id.
|
@NotNull(message="gist is never NULL") Gist create(@NotNull(message="list of files can\'t be NULL") Map<String,String> files, boolean visible) throws IOException
files
- Names and content of filesvisible
- Indicates whether the gist is publicIOException
- If there is any I/O problem@NotNull(message="gist is never NULL") Gist get(@NotNull(message="name can\'t be NULL") String name)
name
- Name of it@NotNull(message="iterable is never NULL") Iterable<Gist> iterate()
void remove(@NotNull(message="identifier is never NULL") String identifier) throws IOException
identifier
- Identifier of the gist to be removed.IOException
- If there is any I/O problemCopyright © 2012–2014 jcabi.com. All rights reserved.