@Test public void iteratorTest() throws DataAccessLayerException { int count = 0; for (Iterator<String> iter = CLASS_UNDER_TEST.iterator(); iter.hasNext(); iter.next()) { count++; } assertTrue(count == TESTDATA1.size()); assertTrue(count == CLASS_UNDER_TEST.size()); }
public Iterator<E> iterator() { try { return _map.keyIterator(); } catch (DataAccessLayerException exception) { throw new RuntimeException(exception); } }
PersistentSet implements Iterable<E>, Initialisable { public Iterator<E> iterator() { try { return _map.keyIterator(); } catch (DataAccessLayerException exception) { throw new RuntimeException(exception); } } }
PersistentSet implements Iterable<E>, Initialisable { public Iterator<E> iterator() { try { return _map.keyIterator(); } catch (DataAccessLayerException exception) { throw new RuntimeException(exception); } } PersistentSet(final Class<E> elementClass, final String name); }
PersistentSet implements Iterable<E>, Initialisable { public Iterator<E> iterator() { try { return _map.keyIterator(); } catch (DataAccessLayerException exception) { throw new RuntimeException(exception); } } PersistentSet(final Class<E> elementClass, final String name); @Override void initialise(final DataAccessLayerFactory factory); boolean add(final E e); boolean addAll(final Collection<? extends E> collect); void clear(); boolean contains(final E o); boolean containsAll(final Collection<? extends E> collect); boolean isEmpty(); Iterator<E> iterator(); boolean remove(final E o); boolean removeAll(final Collection<? extends E> collect); boolean retainAll(final Collection<? extends E> collect); int size(); @SuppressWarnings("hiding") E[] toArray(final E[] a); }
PersistentSet implements Iterable<E>, Initialisable { public Iterator<E> iterator() { try { return _map.keyIterator(); } catch (DataAccessLayerException exception) { throw new RuntimeException(exception); } } PersistentSet(final Class<E> elementClass, final String name); @Override void initialise(final DataAccessLayerFactory factory); boolean add(final E e); boolean addAll(final Collection<? extends E> collect); void clear(); boolean contains(final E o); boolean containsAll(final Collection<? extends E> collect); boolean isEmpty(); Iterator<E> iterator(); boolean remove(final E o); boolean removeAll(final Collection<? extends E> collect); boolean retainAll(final Collection<? extends E> collect); int size(); @SuppressWarnings("hiding") E[] toArray(final E[] a);  }