1package jdiff;
2
3import java.util.*;
4import com.sun.javadoc.*;
5
6/**
7 * The class contains the changes between two API objects; packages added,
8 * removed and changed. The packages are represented by PackageDiff objects,
9 * which contain the changes in each package, and so on.
10 *
11 * See the file LICENSE.txt for copyright details.
12 * @author Matthew Doar, mdoar@pobox.com
13 */
14public class APIDiff {
15
16    /** Packages added in the new API. */
17    public List packagesAdded = null; // PackageAPI[]
18    /** Packages removed in the new API. */
19    public List packagesRemoved = null; // PackageAPI[]
20    /** Packages changed in the new API. */
21    public List packagesChanged = null; // PackageDiff[]
22
23    /** Name of the old API. */
24    public static String oldAPIName_;
25    /** Name of the old API. */
26    public static String newAPIName_;
27
28    /* The overall percentage difference between the two APIs. */
29    public double pdiff = 0.0;
30
31    /** Default constructor. */
32    public APIDiff() {
33        oldAPIName_ = null;
34        newAPIName_ = null;
35        packagesAdded = new ArrayList(); // PackageAPI[]
36        packagesRemoved = new ArrayList(); // PackageAPI[]
37        packagesChanged = new ArrayList(); // PackageDiff[]
38    }
39}
40
41