| Package | Description |
|---|---|
| org.klomp.snark | I2P version of the snark bittorrent client, imported in 2005 and heavily enhanced to add a web UI, DHT support, and other features. |
| org.klomp.snark.comments | Data structures to support ut_comment, since 0.9.31. |
| Modifier and Type | Method and Description |
|---|---|
boolean | Snark.addComments(List<Comment> comments)Add to the current comment set for this torrent, creating it if it didn't previously exist. |
void | PeerListener.gotComments(Peer peer,
List<Comment> comments)Called when comments are received via ut_comment |
void | PeerCoordinator.gotComments(Peer peer,
List<Comment> comments)Called when comments are received via ut_comment |
| Modifier and Type | Method and Description |
|---|---|
static Comment | Comment.fromPersistentString(String s)Parses a comment from its persistent string representation. |
| Modifier and Type | Method and Description |
|---|---|
Iterator<Comment> | CommentSet.iterator()Returns an iterator over non-hidden comments in reverse-sort order (newest first). |
| Modifier and Type | Method and Description |
|---|---|
boolean | CommentSet.add(Comment c)Adds a comment to this set. |
int | Comment.compareTo(Comment c)Compares comments in reverse chronological order (newest first). |
boolean | Comment.equalsIgnoreTimestamp(Comment c)Checks equality ignoring the timestamp, comparing only rating, text, and name. |
| Constructor and Description |
|---|
CommentSet(Collection<Comment> coll)Creates a CommentSet from a collection of comments. |