| Method from org.apache.commons.collections.primitives.adapters.AbstractCollectionShortCollection Detail: |
public boolean add(short element) {
return getCollection().add(new Short(element));
}
|
public boolean addAll(ShortCollection c) {
return getCollection().addAll(ShortCollectionCollection.wrap(c));
}
|
public void clear() {
getCollection().clear();
}
|
public boolean contains(short element) {
return getCollection().contains(new Short(element));
}
|
public boolean containsAll(ShortCollection c) {
return getCollection().containsAll(ShortCollectionCollection.wrap(c));
}
|
abstract protected Collection getCollection()
|
public boolean isEmpty() {
return getCollection().isEmpty();
}
|
public ShortIterator iterator() {
return IteratorShortIterator.wrap(getCollection().iterator());
}
|
public boolean removeAll(ShortCollection c) {
return getCollection().removeAll(ShortCollectionCollection.wrap(c));
}
|
public boolean removeElement(short element) {
return getCollection().remove(new Short(element));
}
|
public boolean retainAll(ShortCollection c) {
return getCollection().retainAll(ShortCollectionCollection.wrap(c));
}
|
public int size() {
return getCollection().size();
}
|
public short[] toArray() {
Object[] src = getCollection().toArray();
short[] dest = new short[src.length];
for(int i=0;i< src.length;i++) {
dest[i] = ((Number)(src[i])).shortValue();
}
return dest;
}
|
public short[] toArray(short[] dest) {
Object[] src = getCollection().toArray();
if(dest.length < src.length) {
dest = new short[src.length];
}
for(int i=0;i< src.length;i++) {
dest[i] = ((Number)(src[i])).shortValue();
}
return dest;
}
|
public String toString() {
return getCollection().toString();
}
|