@Immutable @Loggable(value=1) public static final class Comment.Smart extends Object implements Comment
Comment.Smart
Constructor and Description |
---|
Comment.Smart(Comment 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(Comment obj) |
Date |
createdAt()
When this comment was created.
|
Issue |
issue()
The issue 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.
|
@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 is never NULL") public URL url() throws IOException
IOException
- If there is any I/O problem@NotNull(message="date is never NULL") public Date createdAt() throws IOException
IOException
- If there is any I/O problem@NotNull(message="Date is never NULL") public Date updatedAt() throws IOException
IOException
- If there is any I/O problem@NotNull(message="issue is never NULL") public Issue issue()
Comment
public int number()
Comment
public void remove() throws IOException
Comment
remove
in interface Comment
IOException
- 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 problempublic 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 problemCopyright © 2012–2014 jcabi.com. All rights reserved.