| Method from org.apache.commons.collections.primitives.adapters.AbstractCollectionIntCollection Detail: |
public boolean add(int element) {
return getCollection().add(new Integer(element));
}
|
public boolean addAll(IntCollection c) {
return getCollection().addAll(IntCollectionCollection.wrap(c));
}
|
public void clear() {
getCollection().clear();
}
|
public boolean contains(int element) {
return getCollection().contains(new Integer(element));
}
|
public boolean containsAll(IntCollection c) {
return getCollection().containsAll(IntCollectionCollection.wrap(c));
}
|
abstract protected Collection getCollection()
|
public boolean isEmpty() {
return getCollection().isEmpty();
}
|
public IntIterator iterator() {
return IteratorIntIterator.wrap(getCollection().iterator());
}
|
public boolean removeAll(IntCollection c) {
return getCollection().removeAll(IntCollectionCollection.wrap(c));
}
|
public boolean removeElement(int element) {
return getCollection().remove(new Integer(element));
}
|
public boolean retainAll(IntCollection c) {
return getCollection().retainAll(IntCollectionCollection.wrap(c));
}
|
public int size() {
return getCollection().size();
}
|
public int[] toArray() {
Object[] src = getCollection().toArray();
int[] dest = new int[src.length];
for(int i=0;i< src.length;i++) {
dest[i] = ((Number)(src[i])).intValue();
}
return dest;
}
|
public int[] toArray(int[] dest) {
Object[] src = getCollection().toArray();
if(dest.length < src.length) {
dest = new int[src.length];
}
for(int i=0;i< src.length;i++) {
dest[i] = ((Number)(src[i])).intValue();
}
return dest;
}
|
public String toString() {
return getCollection().toString();
}
|