@Test public void shouldHandleEmptySet() { final Set<TraceeBackendProvider> providers = Sets.newSet(); final BackendProviderSet out = new BackendProviderSet(providers); assertThat(out.size(), equalTo(0)); }
@Override public int size() { final Collection<TraceeBackendProvider> strongRefList = createStrongView(values); determineValidity(strongRefList); if (valid) { return strongRefList.size(); } return 0; }
BackendProviderSet extends AbstractSet<TraceeBackendProvider> { @Override public int size() { final Collection<TraceeBackendProvider> strongRefList = createStrongView(values); determineValidity(strongRefList); if (valid) { return strongRefList.size(); } return 0; } }
BackendProviderSet extends AbstractSet<TraceeBackendProvider> { @Override public int size() { final Collection<TraceeBackendProvider> strongRefList = createStrongView(values); determineValidity(strongRefList); if (valid) { return strongRefList.size(); } return 0; } BackendProviderSet(Set<TraceeBackendProvider> elements); }
BackendProviderSet extends AbstractSet<TraceeBackendProvider> { @Override public int size() { final Collection<TraceeBackendProvider> strongRefList = createStrongView(values); determineValidity(strongRefList); if (valid) { return strongRefList.size(); } return 0; } BackendProviderSet(Set<TraceeBackendProvider> elements); @Override Iterator<TraceeBackendProvider> iterator(); @Override int size(); }
BackendProviderSet extends AbstractSet<TraceeBackendProvider> { @Override public int size() { final Collection<TraceeBackendProvider> strongRefList = createStrongView(values); determineValidity(strongRefList); if (valid) { return strongRefList.size(); } return 0; } BackendProviderSet(Set<TraceeBackendProvider> elements); @Override Iterator<TraceeBackendProvider> iterator(); @Override int size();  }