@Test public void remove() { assertThat(set.remove(mock(PtpEventListener.class)), is(false)); assertThat(set.size(), is(2)); set.remove(listener1); assertThat(set.size(), is(1)); set.remove(listener2); assertThat(set.size(), is(0)); }
@Override public boolean remove(Object o) { return listeners.remove(o); }
PtpEventListenerSet extends AbstractSet<PtpEventListener> implements PtpEventListener { @Override public boolean remove(Object o) { return listeners.remove(o); } }
PtpEventListenerSet extends AbstractSet<PtpEventListener> implements PtpEventListener { @Override public boolean remove(Object o) { return listeners.remove(o); }  }
PtpEventListenerSet extends AbstractSet<PtpEventListener> implements PtpEventListener { @Override public boolean remove(Object o) { return listeners.remove(o); }  @Override boolean add(PtpEventListener listener); @Override boolean remove(Object o); @Override void clear(); @Override Iterator<PtpEventListener> iterator(); @Override int size(); @Override void onEvent(Event event); }
PtpEventListenerSet extends AbstractSet<PtpEventListener> implements PtpEventListener { @Override public boolean remove(Object o) { return listeners.remove(o); }  @Override boolean add(PtpEventListener listener); @Override boolean remove(Object o); @Override void clear(); @Override Iterator<PtpEventListener> iterator(); @Override int size(); @Override void onEvent(Event event);  }