(T element)
| 16 | */ |
| 17 | public abstract class AbstractCollection<T> implements Collection<T> { |
| 18 | public boolean add(T element) { |
| 19 | throw new UnsupportedOperationException("adding to " |
| 20 | + this.getClass().getName()); |
| 21 | } |
| 22 | |
| 23 | public boolean addAll(Collection<? extends T> collection) { |
| 24 | boolean result = false; |