1 |
|
package com.dreamcatcher.bicycle.core; |
2 |
|
|
3 |
|
import java.util.Vector; |
4 |
|
|
5 |
|
import com.dreamcatcher.bicycle.interfaces.ISettingEvent; |
6 |
|
|
|
|
| 88,9% |
Uncovered Elements: 2 (18) |
Complexity: 7 |
Complexity Density: 0,78 |
|
7 |
|
public class SettingEventListener implements ISettingEvent { |
8 |
|
private Vector<ISettingEvent> mEvents = null; |
9 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
10 |
1
|
public SettingEventListener(){... |
11 |
1
|
mEvents = new Vector<ISettingEvent>(); |
12 |
|
} |
13 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0,5 |
|
14 |
2
|
public void onCitySettingChanged(int resultCode) {... |
15 |
2
|
for(ISettingEvent event : mEvents){ |
16 |
8
|
event.onCitySettingChanged(resultCode); |
17 |
|
} |
18 |
|
} |
19 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0,5 |
|
20 |
8
|
public void onFavoriteIdsChanged() {... |
21 |
8
|
for(ISettingEvent event : mEvents){ |
22 |
24
|
event.onFavoriteIdsChanged(); |
23 |
|
} |
24 |
|
|
25 |
|
} |
26 |
|
|
|
|
| 75% |
Uncovered Elements: 1 (4) |
Complexity: 2 |
Complexity Density: 1 |
|
27 |
6
|
public void addEvent(ISettingEvent event){... |
28 |
6
|
if(!mEvents.contains(event)){ |
29 |
6
|
mEvents.add(event); |
30 |
|
} |
31 |
|
} |
32 |
|
|
|
|
| 75% |
Uncovered Elements: 1 (4) |
Complexity: 2 |
Complexity Density: 1 |
|
33 |
3
|
public void removeEvent(ISettingEvent event){... |
34 |
3
|
if(mEvents.contains(event)){ |
35 |
3
|
mEvents.remove(event); |
36 |
|
} |
37 |
|
} |
38 |
|
|
39 |
|
} |