Added more to the avian classpath for the collection interface as well as the list interface

Added to collection:
public boolean containsAll(Collection<?> c);
public boolean removeAll(Collection<?> c);

Added to list:
public boolean addAll(int startIndex, Collection<? extends T> c);

Also where possible for inner classes I made them extend the abstract version instead of just implement the interface.  This helps reduce code duplication where possible.

These changes were necessary to support protobuf 2.5.0
This commit is contained in:
Mike Jensen
2013-04-29 11:32:56 -06:00
parent 3372210f45
commit a41f8c0103
8 changed files with 129 additions and 67 deletions

View File

@ -17,12 +17,16 @@ public interface Collection<T> extends Iterable<T> {
public boolean contains(Object element);
public boolean containsAll(Collection<?> c);
public boolean add(T element);
public boolean addAll(Collection<? extends T> collection);
public boolean remove(Object element);
public boolean removeAll(Collection<?> c);
public Object[] toArray();
public <S> S[] toArray(S[] array);