mirror of
https://github.com/corda/corda.git
synced 2025-01-09 06:23:04 +00:00
a41f8c0103
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
36 lines
844 B
Java
36 lines
844 B
Java
/* Copyright (c) 2008-2009, Avian Contributors
|
|
|
|
Permission to use, copy, modify, and/or distribute this software
|
|
for any purpose with or without fee is hereby granted, provided
|
|
that the above copyright notice and this permission notice appear
|
|
in all copies.
|
|
|
|
There is NO WARRANTY for this software. See license.txt for
|
|
details. */
|
|
|
|
package java.util;
|
|
|
|
public interface Collection<T> extends Iterable<T> {
|
|
public int size();
|
|
|
|
public boolean isEmpty();
|
|
|
|
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);
|
|
|
|
public void clear();
|
|
}
|