API Diff Specification | |
To Version: | Android SDK 0.9_r1 |
From Version: | Android SDK m5-rc14 |
Generated | 2008.08.14 15:44 |
The percent change statistic reported for all elements in each API is defined recursively as follows:
Percentage difference = 100 * (added + removed + 2*changed) ----------------------------------- sum of public elements in BOTH APIs
where added
is the number of packages added, removed
is the number of packages removed, and changed
is the number of packages changed.
This definition is applied recursively for the classes and their program elements, so the value for a changed package will be less than 1, unless every class in that package has changed.
The definition ensures that if all packages are removed and all new packages are
added, the change will be 100%. Values are rounded here, so a value of 0% indicates a percentage difference of less than 0.5%.
The overall difference between the two APIs is approximately 30%.
The table below lists the numbers of program elements (packages, classes, constructors, methods, and fields) that were removed, added or changed. The table includes only the highest-level program elements — that is, if a class with two methods was added, the number of methods added does not include those two methods, but the number of classes added does include that class.
Number of Differences | ||||
---|---|---|---|---|
Removals | Additions | Changes | Total | |
Packages | 20 | 14 | 58 | 92 |
Classes and Interfaces | 161 | 343 | 400 | 904 |
Constructors | 106 | 146 | 14 | 266 |
Methods | 589 | 1339 | 444 | 2372 |
Fields | 1520 | 1410 | 13 | 2943 |
Total | 2396 | 3252 | 929 | 6577 |
©2008 Google - Code Home - Site Terms of Sservice - Privacy Policy |