@Test public void getInstance() { Assert.assertEquals(sut.getClass(), EventBus.getInstance().getClass()); }
public static EventBus getInstance() { if (singleton == null) { singleton = new EventBus(); } return singleton; }
EventBus { public static EventBus getInstance() { if (singleton == null) { singleton = new EventBus(); } return singleton; } }
EventBus { public static EventBus getInstance() { if (singleton == null) { singleton = new EventBus(); } return singleton; } EventBus(); }
EventBus { public static EventBus getInstance() { if (singleton == null) { singleton = new EventBus(); } return singleton; } EventBus(); static EventBus getInstance(); void addObserver(final Object event, final Observer< ? > observer); void bufferObservers(); void restoreBufferedObservers(); void addObserver(final Class< ? extends Object> event, final Observer< ? > observer,
            final Boolean fireLastEvent); void addObservers(final Observer observer, final Class... events); void addObserver(final Class< ? extends Object> event, final Observer< ? > observer); void removeObserver(final Object event, final Observer< ? > observer); void removeObserver(final Class< ? extends Object> event, final Observer< ? > observer); void clear(); @SuppressWarnings("unchecked") void notifyObservers(final Object event); }
EventBus { public static EventBus getInstance() { if (singleton == null) { singleton = new EventBus(); } return singleton; } EventBus(); static EventBus getInstance(); void addObserver(final Object event, final Observer< ? > observer); void bufferObservers(); void restoreBufferedObservers(); void addObserver(final Class< ? extends Object> event, final Observer< ? > observer,
            final Boolean fireLastEvent); void addObservers(final Observer observer, final Class... events); void addObserver(final Class< ? extends Object> event, final Observer< ? > observer); void removeObserver(final Object event, final Observer< ? > observer); void removeObserver(final Class< ? extends Object> event, final Observer< ? > observer); void clear(); @SuppressWarnings("unchecked") void notifyObservers(final Object event);  }