static Cons remove (Cons head, Cons cons) { if (head == null) return head; if (head == cons) return head.next; head.next = remove(head.next, cons); return head; }
static Cons remove (Cons head, Cons cons) { if (head == null) return head; if (head == cons) return head.next; head.next = remove(head.next, cons); return head; }
public void run () { _listeners = Cons.remove(_listeners, cons); connectionRemoved(); } });
public void run () { _listeners = Cons.remove(_listeners, cons); connectionRemoved(); } });
protected synchronized void disconnect (final Cons cons) { if (isDispatching()) { _pendingRuns = append(_pendingRuns, new Runs() { public void run () { _listeners = Cons.remove(_listeners, cons); connectionRemoved(); } }); } else { _listeners = Cons.remove(_listeners, cons); connectionRemoved(); } }
protected synchronized void disconnect (final Cons cons) { if (isDispatching()) { _pendingRuns = append(_pendingRuns, new Runs() { public void run () { _listeners = Cons.remove(_listeners, cons); connectionRemoved(); } }); } else { _listeners = Cons.remove(_listeners, cons); connectionRemoved(); } }