Package com.jcabi.github.safe
Class SfComments
- java.lang.Object
-
- com.jcabi.github.safe.SfComments
-
- All Implemented Interfaces:
Comments
@Immutable @Loggable(1) public final class SfComments extends Object implements Comments
Safe comments.- Since:
- 0.34
- Version:
- $Id: 6445621c27f1899b9ecd743983510e96b9068b20 $
- Author:
- Yegor Bugayenko (yegor256@gmail.com)
-
-
Constructor Summary
Constructors Constructor Description SfComments(Comments cmt)
Public ctor.
-
-
-
Constructor Detail
-
SfComments
public SfComments(Comments cmt)
Public ctor.- Parameters:
cmt
- The original comment
-
-
Method Detail
-
get
public Comment get(int number)
Description copied from interface:Comments
Get comment by number.- Specified by:
get
in interfaceComments
- Parameters:
number
- Comment number- Returns:
- Comment
- See Also:
- Get a Single Comment
-
iterate
public Iterable<Comment> iterate(Date since)
Description copied from interface:Comments
Iterate them all.- Specified by:
iterate
in interfaceComments
- Parameters:
since
- Since when? Just givenew Date(0)
if you want all comments.- Returns:
- All comments
- See Also:
- List Comments on an Issue
-
post
public Comment post(String text) throws IOException
Description copied from interface:Comments
Post new comment.- Specified by:
post
in interfaceComments
- Parameters:
text
- Text of comment to post in Markdown format- Returns:
- Comment
- Throws:
IOException
- If there is any I/O problem- See Also:
- Create a Comment
-
-