package de.schlegel11.eventdispatcher;

/**
 * Created by schlegel11 on 05.11.14.
 */
public class EventListenerWrapper {
}

@@ -37,88 +37,1195 @@
 r;%0A%0A
-/**%0A * Created by schlegel11 on 05.11.14.%0A */%0Apublic class EventListenerWrapper %7B
+import java.util.EventListener;%0Aimport java.util.Objects;%0A%0A/**%0A * Created by schlegel11 on 05.11.14.%0A */%0Afinal class EventListenerWrapper %7B%0A%0A    public final static int INFINITE_CALLS = -1;%0A    private final EventListener listener;%0A    private final int maxCalls;%0A    private int currentCalls;%0A%0A    public EventListenerWrapper(EventListener listener, int maxCalls) %7B%0A        this.listener = listener;%0A        this.maxCalls = maxCalls;%0A    %7D%0A%0A    public EventListener getListener() %7B%0A        return listener;%0A    %7D%0A%0A    public int getMaxCalls() %7B%0A        return maxCalls;%0A    %7D%0A%0A    public int getCurrentCalls() %7B%0A        return currentCalls;%0A    %7D%0A%0A    public void addCurrentCalls(int currentCalls) %7B%0A        this.currentCalls += currentCalls;%0A    %7D%0A%0A    @Override%0A    public int hashCode() %7B%0A        return Objects.hash(listener);%0A    %7D%0A%0A    @Override%0A    public boolean equals(Object obj) %7B%0A        if (this == obj) %7B%0A            return true;%0A        %7D%0A        if (obj == null %7C%7C getClass() != obj.getClass()) %7B%0A            return false;%0A        %7D%0A        final EventListenerWrapper other = (EventListenerWrapper) obj;%0A        return Objects.equals(this.listener, other.listener);%0A    %7D
 %0A%7D%0A

Add helper class.