@Test public void addAll() throws DataAccessLayerException { CLASS_UNDER_TEST.clear(); assertTrue(CLASS_UNDER_TEST.isEmpty()); assertTrue(CLASS_UNDER_TEST.addAll(TESTDATA2)); assertTrue(CLASS_UNDER_TEST.size() == TESTDATA1.size()); }
public boolean addAll(final Collection<? extends E> collect) throws DataAccessLayerException { if (collect == null || collect.isEmpty()) { return false; } boolean changed = false; for (final E obj : collect) { changed = changed | add(obj); } return changed; }
PersistentSet implements Iterable<E>, Initialisable { public boolean addAll(final Collection<? extends E> collect) throws DataAccessLayerException { if (collect == null || collect.isEmpty()) { return false; } boolean changed = false; for (final E obj : collect) { changed = changed | add(obj); } return changed; } }
PersistentSet implements Iterable<E>, Initialisable { public boolean addAll(final Collection<? extends E> collect) throws DataAccessLayerException { if (collect == null || collect.isEmpty()) { return false; } boolean changed = false; for (final E obj : collect) { changed = changed | add(obj); } return changed; } PersistentSet(final Class<E> elementClass, final String name); }
PersistentSet implements Iterable<E>, Initialisable { public boolean addAll(final Collection<? extends E> collect) throws DataAccessLayerException { if (collect == null || collect.isEmpty()) { return false; } boolean changed = false; for (final E obj : collect) { changed = changed | add(obj); } return changed; } 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 boolean addAll(final Collection<? extends E> collect) throws DataAccessLayerException { if (collect == null || collect.isEmpty()) { return false; } boolean changed = false; for (final E obj : collect) { changed = changed | add(obj); } return changed; } 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);  }