| Method from org.apache.commons.collections.primitives.adapters.AbstractShortCollectionCollection Detail: |
public boolean add(Object element) {
return getShortCollection().add(((Number)element).shortValue());
}
|
public boolean addAll(Collection c) {
return getShortCollection().addAll(CollectionShortCollection.wrap(c));
}
|
public void clear() {
getShortCollection().clear();
}
|
public boolean contains(Object element) {
return getShortCollection().contains(((Number)element).shortValue());
}
|
public boolean containsAll(Collection c) {
return getShortCollection().containsAll(CollectionShortCollection.wrap(c));
}
|
abstract protected ShortCollection getShortCollection()
|
public boolean isEmpty() {
return getShortCollection().isEmpty();
}
|
public Iterator iterator() {
return ShortIteratorIterator.wrap(getShortCollection().iterator());
}
|
public boolean remove(Object element) {
return getShortCollection().removeElement(((Number)element).shortValue());
}
|
public boolean removeAll(Collection c) {
return getShortCollection().removeAll(CollectionShortCollection.wrap(c));
}
|
public boolean retainAll(Collection c) {
return getShortCollection().retainAll(CollectionShortCollection.wrap(c));
}
|
public int size() {
return getShortCollection().size();
}
|
public Object[] toArray() {
short[] a = getShortCollection().toArray();
Object[] A = new Object[a.length];
for(int i=0;i< a.length;i++) {
A[i] = new Short(a[i]);
}
return A;
}
|
public Object[] toArray(Object[] A) {
short[] a = getShortCollection().toArray();
if(A.length < a.length) {
A = (Object[])(Array.newInstance(A.getClass().getComponentType(), a.length));
}
for(int i=0;i< a.length;i++) {
A[i] = new Short(a[i]);
}
if(A.length > a.length) {
A[a.length] = null;
}
return A;
}
|
public String toString() {
return getShortCollection().toString();
}
|