|
| 1 | +export class CountryDemographicAfricanItem { |
| 2 | + public constructor(init: Partial<CountryDemographicAfricanItem>) { |
| 3 | + Object.assign(this, init); |
| 4 | + } |
| 5 | + |
| 6 | + public population: number; |
| 7 | + public birthRate: number; |
| 8 | + public deathRate: number; |
| 9 | + public name: string; |
| 10 | + |
| 11 | +} |
| 12 | +export class CountryDemographicAfrican extends Array<CountryDemographicAfricanItem> { |
| 13 | + public constructor(items: Array<CountryDemographicAfricanItem> | number = -1) { |
| 14 | + if (Array.isArray(items)) { |
| 15 | + super(...items); |
| 16 | + } else { |
| 17 | + const newItems = [ |
| 18 | + new CountryDemographicAfricanItem({ population: 39728000, birthRate: 23.9, deathRate: 4.77, name: `Algeria` }), |
| 19 | + new CountryDemographicAfricanItem({ population: 27884000, birthRate: 42.32, deathRate: 8.68, name: `Angola` }), |
| 20 | + new CountryDemographicAfricanItem({ population: 10576000, birthRate: 37.43, deathRate: 9.32, name: `Benin` }), |
| 21 | + new CountryDemographicAfricanItem({ population: 2121000, birthRate: 24.14, deathRate: 7.02, name: `Botswana` }), |
| 22 | + new CountryDemographicAfricanItem({ population: 18111000, birthRate: 39.44, deathRate: 8.82, name: `Burkina Faso` }), |
| 23 | + new CountryDemographicAfricanItem({ population: 10160000, birthRate: 42.66, deathRate: 11.03, name: `Burundi` }), |
| 24 | + new CountryDemographicAfricanItem({ population: 23298000, birthRate: 36.84, deathRate: 10.35, name: `Cameroon` }), |
| 25 | + new CountryDemographicAfricanItem({ population: 525000, birthRate: 21.14, deathRate: 5.61, name: `Cape Verde` }), |
| 26 | + new CountryDemographicAfricanItem({ population: 4493000, birthRate: 36.11, deathRate: 14.01, name: `C.A.R.` }), |
| 27 | + new CountryDemographicAfricanItem({ population: 14111000, birthRate: 43.86, deathRate: 13.22, name: `Chad` }), |
| 28 | + new CountryDemographicAfricanItem({ population: 777000, birthRate: 33.33, deathRate: 7.49, name: `Comoros` }), |
| 29 | + new CountryDemographicAfricanItem({ population: 4856000, birthRate: 35.23, deathRate: 7.56, name: `Congo` }), |
| 30 | + new CountryDemographicAfricanItem({ population: 23226000, birthRate: 37.1, deathRate: 12.54, name: `Cote Ivoire` }), |
| 31 | + new CountryDemographicAfricanItem({ population: 76245000, birthRate: 42.81, deathRate: 10.19, name: `DCongo` }), |
| 32 | + new CountryDemographicAfricanItem({ population: 914000, birthRate: 23.35, deathRate: 8.37, name: `Djibouti` }), |
| 33 | + new CountryDemographicAfricanItem({ population: 92443000, birthRate: 27.2, deathRate: 5.96, name: `Egypt` }), |
| 34 | + new CountryDemographicAfricanItem({ population: 1169000, birthRate: 34.64, deathRate: 10.34, name: `Equatorial Guinea` }), |
| 35 | + new CountryDemographicAfricanItem({ population: 3343000, birthRate: 32.83, deathRate: 7.07, name: `Eritrea` }), |
| 36 | + new CountryDemographicAfricanItem({ population: 100835000, birthRate: 32.3, deathRate: 7, name: `Ethiopia` }), |
| 37 | + new CountryDemographicAfricanItem({ population: 1948000, birthRate: 30.09, deathRate: 7.82, name: `Gabon` }), |
| 38 | + new CountryDemographicAfricanItem({ population: 2086000, birthRate: 39.99, deathRate: 8.2, name: `Gambia` }), |
| 39 | + new CountryDemographicAfricanItem({ population: 27849000, birthRate: 31.56, deathRate: 8.31, name: `Ghana` }), |
| 40 | + new CountryDemographicAfricanItem({ population: 11432000, birthRate: 36.36, deathRate: 9.58, name: `Guinea` }), |
| 41 | + new CountryDemographicAfricanItem({ population: 1737000, birthRate: 37.15, deathRate: 10.78, name: `Guinea-Bissau` }), |
| 42 | + new CountryDemographicAfricanItem({ population: 47878000, birthRate: 31.78, deathRate: 5.84, name: `Kenya` }), |
| 43 | + new CountryDemographicAfricanItem({ population: 2059000, birthRate: 28.16, deathRate: 12.92, name: `Lesotho` }), |
| 44 | + new CountryDemographicAfricanItem({ population: 4472000, birthRate: 34.72, deathRate: 8.12, name: `Liberia` }), |
| 45 | + new CountryDemographicAfricanItem({ population: 6418000, birthRate: 20.19, deathRate: 5.2, name: `Libya` }), |
| 46 | + new CountryDemographicAfricanItem({ population: 24234000, birthRate: 33.4, deathRate: 6.48, name: `Madagascar` }), |
| 47 | + new CountryDemographicAfricanItem({ population: 16745000, birthRate: 37.05, deathRate: 7.5, name: `Malawi` }), |
| 48 | + new CountryDemographicAfricanItem({ population: 17439000, birthRate: 43.22, deathRate: 10.67, name: `Mali` }), |
| 49 | + new CountryDemographicAfricanItem({ population: 4046000, birthRate: 34.57, deathRate: 7.96, name: `Mauritania` }), |
| 50 | + new CountryDemographicAfricanItem({ population: 1259000, birthRate: 10.1, deathRate: 7.7, name: `Mauritius` }), |
| 51 | + new CountryDemographicAfricanItem({ population: 34664000, birthRate: 20.4, deathRate: 5.15, name: `Morocco` }), |
| 52 | + new CountryDemographicAfricanItem({ population: 27042000, birthRate: 39.36, deathRate: 10.38, name: `Mozambique` }), |
| 53 | + new CountryDemographicAfricanItem({ population: 2315000, birthRate: 29.59, deathRate: 7.46, name: `Namibia` }), |
| 54 | + new CountryDemographicAfricanItem({ population: 20002000, birthRate: 48.44, deathRate: 9.94, name: `Niger` }), |
| 55 | + new CountryDemographicAfricanItem({ population: 181136992, birthRate: 39.37, deathRate: 12.77, name: `Nigeria` }), |
| 56 | + new CountryDemographicAfricanItem({ population: 11369000, birthRate: 31.79, deathRate: 6.13, name: `Rwanda` }), |
| 57 | + new CountryDemographicAfricanItem({ population: 199000, birthRate: 34.33, deathRate: 6.81, name: `Sao Tome and Principe` }), |
| 58 | + new CountryDemographicAfricanItem({ population: 14578000, birthRate: 36.21, deathRate: 6.07, name: `Senegal` }), |
| 59 | + new CountryDemographicAfricanItem({ population: 95000, birthRate: 17, deathRate: 7.5, name: `Seychelles` }), |
| 60 | + new CountryDemographicAfricanItem({ population: 7172000, birthRate: 35.61, deathRate: 13.03, name: `Sierra Leone` }), |
| 61 | + new CountryDemographicAfricanItem({ population: 13797000, birthRate: 43.66, deathRate: 11.63, name: `Somalia` }), |
| 62 | + new CountryDemographicAfricanItem({ population: 55386000, birthRate: 21.3, deathRate: 10.1, name: `South Africa` }), |
| 63 | + new CountryDemographicAfricanItem({ population: 10716000, birthRate: 36.32, deathRate: 11.24, name: `South Sudan` }), |
| 64 | + new CountryDemographicAfricanItem({ population: 38903000, birthRate: 33.32, deathRate: 7.52, name: `Sudan` }), |
| 65 | + new CountryDemographicAfricanItem({ population: 1104000, birthRate: 29.27, deathRate: 9.86, name: `Swaziland` }), |
| 66 | + new CountryDemographicAfricanItem({ population: 51483000, birthRate: 38.64, deathRate: 7.02, name: `Tanzania` }), |
| 67 | + new CountryDemographicAfricanItem({ population: 7323000, birthRate: 34.53, deathRate: 8.83, name: `Togo` }), |
| 68 | + new CountryDemographicAfricanItem({ population: 11180000, birthRate: 18.65, deathRate: 6.36, name: `Tunisia` }), |
| 69 | + new CountryDemographicAfricanItem({ population: 38225000, birthRate: 42.63, deathRate: 8.87, name: `Uganda` }), |
| 70 | + new CountryDemographicAfricanItem({ population: 15879000, birthRate: 38.44, deathRate: 8, name: `Zambia` }), |
| 71 | + new CountryDemographicAfricanItem({ population: 13815000, birthRate: 33.94, deathRate: 8.4, name: `Zimbabwe` }), |
| 72 | + ]; |
| 73 | + super(...newItems.slice(0)); |
| 74 | + } |
| 75 | + } |
| 76 | +} |
0 commit comments