@Test public void testClear() { Collection<Object> c = new Collection<Object>(); c.add(new Object()); c.clear(); assertTrue(c.isEmpty()); }
@Override public void clear() { for(Iterator<E> iter = this.iterator(); iter.hasNext(); ) { iter.next(); iter.remove(); } }
Collection extends ArrayList<E> implements CollectionListener<E> { @Override public void clear() { for(Iterator<E> iter = this.iterator(); iter.hasNext(); ) { iter.next(); iter.remove(); } } }
Collection extends ArrayList<E> implements CollectionListener<E> { @Override public void clear() { for(Iterator<E> iter = this.iterator(); iter.hasNext(); ) { iter.next(); iter.remove(); } } Collection();  Collection(java.util.Collection c); }
Collection extends ArrayList<E> implements CollectionListener<E> { @Override public void clear() { for(Iterator<E> iter = this.iterator(); iter.hasNext(); ) { iter.next(); iter.remove(); } } 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 void clear() { for(Iterator<E> iter = this.iterator(); iter.hasNext(); ) { iter.next(); iter.remove(); } } 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();  }