@Immutable @Loggable(value=1) public static final class GistComment.Smart extends Object implements GistComment
GistComment.Smart
Constructor and Description |
---|
GistComment.Smart(GistComment cmt)
Public ctor.
|
Modifier and Type | Method and Description |
---|---|
User |
author()
Get its author.
|
String |
body()
Get its body.
|
void |
body(String text)
Change comment body.
|
int |
compareTo(GistComment cmt) |
Date |
createdAt()
When this comment was created.
|
Gist |
gist()
The gist it's in.
|
javax.json.JsonObject |
json()
Describe it in a JSON object.
|
int |
number()
Number.
|
void |
patch(javax.json.JsonObject json)
Patch using this JSON object.
|
void |
remove()
Delete the comment.
|
Date |
updatedAt()
When this comment was updated last time.
|
URL |
url()
Get its URL.
|
public GistComment.Smart(@NotNull(message="cmt can\'t be NULL") GistComment cmt)
cmt
- Comment@NotNull(message="user is never NULL") public User author() throws IOException
IOException
- If there is any I/O problem@NotNull(message="body is never NULL") public String body() throws IOException
IOException
- If there is any I/O problempublic void body(@NotNull(message="text can\'t be NULL") String text) throws IOException
text
- Body of commentIOException
- If there is any I/O problem@NotNull(message="URL can\'t be NULL") public URL url() throws IOException
IOException
- If there is any I/O problem@NotNull(message="date can\'t be NULL") public Date createdAt() throws IOException
IOException
- If there is any I/O problem@NotNull(message="date can\'t be NULL") public Date updatedAt() throws IOException
IOException
- If there is any I/O problem@NotNull(message="gist is never NULL") public Gist gist()
GistComment
gist
in interface GistComment
public int number()
GistComment
number
in interface GistComment
public void remove() throws IOException
GistComment
remove
in interface GistComment
IOException
- If there is any I/O problempublic int compareTo(@NotNull(message="cmt can\'t be NULL") GistComment cmt)
compareTo
in interface Comparable<GistComment>
public void patch(@NotNull(message="json can\'t be NULL") javax.json.JsonObject json) throws IOException
JsonPatchable
patch
in interface JsonPatchable
json
- JSON objectIOException
- If there is any I/O problem@NotNull(message="JSON is never NULL") public javax.json.JsonObject json() throws IOException
JsonReadable
json
in interface JsonReadable
IOException
- If there is any I/O problemCopyright © 2012–2014 jcabi.com. All rights reserved.