| Method from org.apache.commons.collections.primitives.adapters.AbstractLongCollectionCollection Detail: |
public boolean add(Object element) {
return getLongCollection().add(((Number)element).longValue());
}
|
public boolean addAll(Collection c) {
return getLongCollection().addAll(CollectionLongCollection.wrap(c));
}
|
public void clear() {
getLongCollection().clear();
}
|
public boolean contains(Object element) {
return getLongCollection().contains(((Number)element).longValue());
}
|
public boolean containsAll(Collection c) {
return getLongCollection().containsAll(CollectionLongCollection.wrap(c));
}
|
abstract protected LongCollection getLongCollection()
|
public boolean isEmpty() {
return getLongCollection().isEmpty();
}
|
public Iterator iterator() {
return LongIteratorIterator.wrap(getLongCollection().iterator());
}
|
public boolean remove(Object element) {
return getLongCollection().removeElement(((Number)element).longValue());
}
|
public boolean removeAll(Collection c) {
return getLongCollection().removeAll(CollectionLongCollection.wrap(c));
}
|
public boolean retainAll(Collection c) {
return getLongCollection().retainAll(CollectionLongCollection.wrap(c));
}
|
public int size() {
return getLongCollection().size();
}
|
public Object[] toArray() {
long[] a = getLongCollection().toArray();
Object[] A = new Object[a.length];
for(int i=0;i< a.length;i++) {
A[i] = new Long(a[i]);
}
return A;
}
|
public Object[] toArray(Object[] A) {
long[] a = getLongCollection().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 Long(a[i]);
}
if(A.length > a.length) {
A[a.length] = null;
}
return A;
}
|
public String toString() {
return getLongCollection().toString();
}
|