FileDocCategorySizeDatePackage
DiffOutput.javaAPI DocAndroid 1.5 API1516Wed May 06 22:41:22 BST 2009jdiff

DiffOutput

public class DiffOutput extends Object implements Comparable
Class to represent a single documentation difference. See the file LICENSE.txt for copyright details.
author
Matthew Doar, mdoar@pobox.com

Fields Summary
public String
pkgName_
The package name for this difference.
public String
className_
The class name for this difference, may be null.
public String
id_
The HTML named anchor identifier for this difference.
public String
title_
The title for this difference.
public String
text_
The text for this difference, with deleted and added words marked.
Constructors Summary
public DiffOutput(String pkgName, String className, String id, String title, String text)
Constructor.


      
           
                          
        pkgName_ = pkgName;
        className_ = className;
        id_ = id;
        title_ = title;
        text_ = text;
    
Methods Summary
public intcompareTo(java.lang.Object o)
Compare two DiffOutput objects, so they will appear in the correct package.

        DiffOutput oDiffOutput = (DiffOutput)o;
        int comp = pkgName_.compareTo(oDiffOutput.pkgName_);
        if (comp != 0)
            return comp;
        // Always put the package-level output at the top - not yet working
//        if (id_.compareTo("package") == 0)
//            return -1;
        return id_.compareTo(oDiffOutput.id_);