|
4 | 4 |
|
5 | 5 | This release removes the long deprecated Entity base class in favor of much more narrow interfaces. |
6 | 6 |
|
| 7 | +#### Breaking changes |
| 8 | + |
7 | 9 | * Removed `Entity` class (deprecated since 1.0) |
8 | 10 | * `Item` and `Property` no longer extend `Entity` |
9 | 11 | * Removed `getLabel`, `getDescription`, `getAliases`, `getAllAliases`, |
10 | 12 | `setLabels`, `setDescriptions`, `addAliases`, `setAllAliases`, |
11 | 13 | `removeLabel`, `removeDescription` and `removeAliases` methods |
12 | | -* `Item` and `Property` now implement `LabelsProvider`, `DescriptionsProvider` and `AliasesProvider` |
13 | 14 | * `Item::getLabels` and `Property::getLabels` now return a `TermList` |
14 | 15 | * `Item::getDescriptions` and `Property::getDescriptions` now return a `TermList` |
15 | | -* Added `Item::getAliasGroups` and `Property::getAliasGroups` |
| 16 | +* Removed `clear` methods from `Item` and `Property` |
16 | 17 | * `StatementListProvider`, `LabelsProvider`, `DescriptionsProvider`, `AliasesProvider` and |
17 | 18 | `FingerprintProvider` now give the guarantee to return objects by reference |
18 | 19 | * `TermList` and `AliasGroupList` no longer throw an `InvalidArgumentException` for invalid language codes. |
19 | 20 | * `getByLanguage` throws an `OutOfBoundsException` instead. |
20 | 21 | * `removeByLanguage` does nothing for invalid values. |
21 | 22 | * `hasTermForLanguage` and `hasGroupForLanguage` return false instead. |
22 | 23 |
|
| 24 | +#### Additions |
| 25 | + |
| 26 | +* `Item` and `Property` now implement `LabelsProvider`, `DescriptionsProvider` and `AliasesProvider` |
| 27 | +* Added `Item::getAliasGroups` and `Property::getAliasGroups` |
| 28 | + |
23 | 29 | ## Version 5.1.0 (2016-03-08) |
24 | 30 |
|
25 | 31 | This release significantly reduces the memory footprint when entities are cloned. |
|
0 commit comments