(Class<? extends IEvent> clazz, IEventHandler handler)
| 33 | } |
| 34 | |
| 35 | public void register(Class<? extends IEvent> clazz, IEventHandler handler) { |
| 36 | if (clazz != null && handler != null) { |
| 37 | List<IEventHandler> list = notifyMap.get(clazz); |
| 38 | if (list == null) { |
| 39 | list = new ArrayList<>(); |
| 40 | } |
| 41 | list.add(handler); |
| 42 | notifyMap.put(clazz, list); |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | public void unregister(Class<? extends IEvent> clazz, IEventHandler handler) { |
| 47 | if (clazz != null && handler != null) { |
no test coverage detected