@Test public void testRemoveAll() { Collection<Object> collection = new Collection<Object>(); final Object a = new Object(); collection.add(a); final Object b = new Object(); collection.add(b); final Object c = new Object(); collection.add(c); collection.removeAll(Arrays.asList(a, b)); assertFalse(collection.contains(a)); assertFalse(collection.contains(b)); assertTrue(collection.contains(c)); }
@Override public boolean removeAll(java.util.Collection<?> c) { if(super.removeAll(c)) { for(Object item : c) { this.collectionItemRemoved((E) item); } return true; } return false; }
Collection extends ArrayList<E> implements CollectionListener<E> { @Override public boolean removeAll(java.util.Collection<?> c) { if(super.removeAll(c)) { for(Object item : c) { this.collectionItemRemoved((E) item); } return true; } return false; } }
Collection extends ArrayList<E> implements CollectionListener<E> { @Override public boolean removeAll(java.util.Collection<?> c) { if(super.removeAll(c)) { for(Object item : c) { this.collectionItemRemoved((E) item); } return true; } return false; } Collection();  Collection(java.util.Collection c); }
Collection extends ArrayList<E> implements CollectionListener<E> { @Override public boolean removeAll(java.util.Collection<?> c) { if(super.removeAll(c)) { for(Object item : c) { this.collectionItemRemoved((E) item); } return true; } return false; } Collection();  Collection(java.util.Collection c); void load(); void save(); void addListener(CollectionListener<E> listener); void removeListener(CollectionListener<E> listener); @Override boolean addAll(java.util.Collection<? extends E> c); @Override boolean addAll(final int index, final java.util.Collection<? extends E> c); @Override boolean add(E item); @Override void add(int row, E item); void replace(int row, E item); @Override void clear(); @Override E remove(int row); @Override boolean remove(Object item); @Override boolean removeAll(java.util.Collection<?> c); @Override boolean removeIf(final Predicate<? super E> filter); @Override void collectionLoaded(); @Override void collectionItemAdded(final E item); @Override void collectionItemRemoved(final E item); @Override void collectionItemChanged(final E item); boolean isLoaded(); boolean isLocked(); }
Collection extends ArrayList<E> implements CollectionListener<E> { @Override public boolean removeAll(java.util.Collection<?> c) { if(super.removeAll(c)) { for(Object item : c) { this.collectionItemRemoved((E) item); } return true; } return false; } Collection();  Collection(java.util.Collection c); void load(); void save(); void addListener(CollectionListener<E> listener); void removeListener(CollectionListener<E> listener); @Override boolean addAll(java.util.Collection<? extends E> c); @Override boolean addAll(final int index, final java.util.Collection<? extends E> c); @Override boolean add(E item); @Override void add(int row, E item); void replace(int row, E item); @Override void clear(); @Override E remove(int row); @Override boolean remove(Object item); @Override boolean removeAll(java.util.Collection<?> c); @Override boolean removeIf(final Predicate<? super E> filter); @Override void collectionLoaded(); @Override void collectionItemAdded(final E item); @Override void collectionItemRemoved(final E item); @Override void collectionItemChanged(final E item); boolean isLoaded(); boolean isLocked();  }