public class CommentSet extends java.util.AbstractSet<Comment>
修飾子とタイプ | フィールド | 説明 |
---|---|---|
static int |
MAX_SIZE |
コンストラクタ | 説明 |
---|---|
CommentSet() |
|
CommentSet(java.io.File file) |
File must be gzipped.
|
CommentSet(java.util.Collection<Comment> coll) |
修飾子とタイプ | メソッド | 説明 |
---|---|---|
boolean |
add(Comment c) |
Max length for strings enforced in Comment.java.
|
void |
clear() |
Actually clears everything, including hidden.
|
double |
getAverageRating() |
|
long |
getLatestCommentTime() |
Is not adjusted if the latest comment wasn't hidden but is then hidden.
|
int |
getMyRating() |
|
int |
getRatingCount() |
|
boolean |
isModified() |
|
java.util.Iterator<Comment> |
iterator() |
Will be in reverse-sort order, i.e.
|
boolean |
remove(int id) |
Remove the id as retrieved from Comment.getID().
|
boolean |
remove(java.lang.Object o) |
Only hides the comment, doesn't really remove it.
|
void |
save(java.io.File file) |
File will be gzipped.
|
int |
size() |
May be more than what the iterator returns,
we do additional deduping in the iterator.
|
public static final int MAX_SIZE
public CommentSet()
public CommentSet(java.util.Collection<Comment> coll)
public CommentSet(java.io.File file) throws java.io.IOException
java.io.IOException
public void save(java.io.File file) throws java.io.IOException
java.io.IOException
public boolean add(Comment c)
add
クラス内 java.util.AbstractCollection<Comment>
public boolean remove(java.lang.Object o)
remove
クラス内 java.util.AbstractCollection<Comment>
public boolean remove(int id)
public long getLatestCommentTime()
public boolean isModified()
public int getMyRating()
public int getRatingCount()
public double getAverageRating()
public void clear()
clear
クラス内 java.util.AbstractCollection<Comment>
public int size()
size
クラス内 java.util.AbstractCollection<Comment>
public java.util.Iterator<Comment> iterator()
iterator
クラス内 java.util.AbstractCollection<Comment>