MCPcopy Create free account
hub / github.com/annmuor/jnode / register

Method register

jnode-core/src/jnode/event/Notifier.java:35–44  ·  view source on GitHub ↗
(Class<? extends IEvent> clazz, IEventHandler handler)

Source from the content-addressed store, hash-verified

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) {

Callers 7

runMethod · 0.80
initMethod · 0.80
mainMethod · 0.80
EchoareaStatMethod · 0.80
FileareaStatMethod · 0.80
ConnectionStatMethod · 0.80
runMethod · 0.80

Calls 2

getMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected