Home | History | Annotate | Download | only in jdiff
      1 package jdiff;
      2 
      3 import java.util.*;
      4 import 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 (at) pobox.com
     13  */
     14 public class APIDiff {
     15 
     16     /** Packages added in the new API. */
     17     public final List<PackageAPI> packagesAdded = new ArrayList<>();
     18     /** Packages removed in the new API. */
     19     public final List<PackageAPI> packagesRemoved = new ArrayList<>();
     20     /** Packages changed in the new API. */
     21     public final List<PackageDiff> packagesChanged = new ArrayList<>();
     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     }
     36 }
     37