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