@Test public void canAddEventListener() { final Disposable disposable = toTest.add(new OneArgAction<String>() { @Override public void invoke(String arg) { } }); assertNotNull(disposable); }
public Disposable add(final T event) { listeners.add(event); return new Disposable() { @Override public void dispose() { removeHandler(event); } }; }
EventListeners implements Disposable { public Disposable add(final T event) { listeners.add(event); return new Disposable() { @Override public void dispose() { removeHandler(event); } }; } }
EventListeners implements Disposable { public Disposable add(final T event) { listeners.add(event); return new Disposable() { @Override public void dispose() { removeHandler(event); } }; } EventListeners(Class classInfo); }
EventListeners implements Disposable { public Disposable add(final T event) { listeners.add(event); return new Disposable() { @Override public void dispose() { removeHandler(event); } }; } EventListeners(Class classInfo); @Override void dispose(); Disposable add(final T event); T invoker(); static EventListeners<T> create(Class classInfo); }
EventListeners implements Disposable { public Disposable add(final T event) { listeners.add(event); return new Disposable() { @Override public void dispose() { removeHandler(event); } }; } EventListeners(Class classInfo); @Override void dispose(); Disposable add(final T event); T invoker(); static EventListeners<T> create(Class classInfo);  }