FileDocCategorySizeDatePackage
SingleComment.javaAPI DocAndroid 1.5 API916Wed May 06 22:41:22 BST 2009jdiff

SingleComment

public class SingleComment extends Object implements Comparable
Represents a single comment element. Has an identifier and some text. See the file LICENSE.txt for copyright details.
author
Matthew Doar, mdoar@pobox.com

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 intcompareTo(java.lang.Object o)
Compare two SingleComment objects using just the id.

        return id_.compareTo(((SingleComment)o).id_);