| 修飾子とタイプ | フィールド | 説明 |
|---|---|---|
static int |
MAX_NAME_LEN |
| コンストラクタ | 説明 |
|---|---|
Comment(java.lang.String text,
java.lang.String name,
int rating) |
My comment, now
|
Comment(java.lang.String text,
java.lang.String name,
int rating,
long time,
boolean isMine) |
| 修飾子とタイプ | メソッド | 説明 |
|---|---|---|
int |
compareTo(Comment c) |
reverse
|
boolean |
equals(java.lang.Object o) |
Comments in the same 10-minute bucket and otherwise equal
are considered equal.
|
boolean |
equalsIgnoreTimestamp(Comment c) |
Ignores timestamp
|
static Comment |
fromPersistentString(java.lang.String s) |
|
int |
getID() |
A unique ID that may be used to delete this comment from
the CommentSet via remove(int).
|
java.lang.String |
getName() |
|
int |
getRating() |
|
java.lang.String |
getText() |
|
long |
getTime() |
java time (ms)
|
int |
hashCode() |
|
boolean |
isHidden() |
|
boolean |
isMine() |
|
(package private) void |
setHidden() |
|
java.lang.String |
toPersistentString() |
public static final int MAX_NAME_LEN
public Comment(java.lang.String text,
java.lang.String name,
int rating)
text - may be null, will be truncated to max length, newlines replaced with spacesname - may be null, will be truncated to max length, newlines and commas removedrating - 0-5public Comment(java.lang.String text,
java.lang.String name,
int rating,
long time,
boolean isMine)
text - may be null, will be truncated to max length, newlines replaced with spacesname - may be null, will be truncated to max length, newlines and commas removedtime - java time (ms)rating - 0-5public java.lang.String getText()
public java.lang.String getName()
public int getRating()
public long getTime()
public boolean isMine()
public boolean isHidden()
void setHidden()
public int getID()
public int compareTo(Comment c)
compareTo インタフェース内 java.lang.Comparable<Comment>public java.lang.String toPersistentString()
public static Comment fromPersistentString(java.lang.String s)
public int hashCode()
hashCode クラス内 java.lang.Objectpublic boolean equals(java.lang.Object o)
equals クラス内 java.lang.Objectpublic boolean equalsIgnoreTimestamp(Comment c)
c - non-null