org.apache.commons.collections.primitives
public abstract class AbstractShortCollection extends Object implements ShortCollection
ShortIterator.remove
.
All other methods have at least some base implementation
derived from these. Subclasses may choose to override
these methods to provide a more efficient implementation.
Since: Commons Primitives 1.0
Version: $Revision: 1.3 $ $Date: 2003/10/16 20:49:36 $
Constructor Summary | |
---|---|
protected | AbstractShortCollection() |
Method Summary | |
---|---|
boolean | add(short element) Unsupported in this base implementation. |
boolean | addAll(ShortCollection c) |
void | clear() |
boolean | contains(short element) |
boolean | containsAll(ShortCollection c) |
boolean | isEmpty() |
abstract ShortIterator | iterator() |
boolean | removeAll(ShortCollection c) |
boolean | removeElement(short element) |
boolean | retainAll(ShortCollection c) |
abstract int | size() |
short[] | toArray() |
short[] | toArray(short[] a) |