SingleCommentpublic class SingleComment extends Object implements ComparableRepresents a single comment element. Has an identifier and some text.
See the file LICENSE.txt for copyright details. |
Fields Summary |
---|
public String | id_The identifier for this comment. | public String | text_The text of this comment. | public boolean | isUsed_If false, then this comment is inactive. |
Constructors Summary |
---|
public SingleComment(String id, String text)
// Escape the commentID in case it contains "<" or ">"
// characters (generics)
id_ = id.replaceAll("<", "<").replaceAll(">", ">");;
text_ = text;
|
Methods Summary |
---|
public int | compareTo(java.lang.Object o)Compare two SingleComment objects using just the id.
return id_.compareTo(((SingleComment)o).id_);
|
|