| Method from org.apache.commons.collections.primitives.adapters.AbstractCollectionLongCollection Detail: |
public boolean add(long element) {
return getCollection().add(new Long(element));
}
|
public boolean addAll(LongCollection c) {
return getCollection().addAll(LongCollectionCollection.wrap(c));
}
|
public void clear() {
getCollection().clear();
}
|
public boolean contains(long element) {
return getCollection().contains(new Long(element));
}
|
public boolean containsAll(LongCollection c) {
return getCollection().containsAll(LongCollectionCollection.wrap(c));
}
|
abstract protected Collection getCollection()
|
public boolean isEmpty() {
return getCollection().isEmpty();
}
|
public LongIterator iterator() {
return IteratorLongIterator.wrap(getCollection().iterator());
}
|
public boolean removeAll(LongCollection c) {
return getCollection().removeAll(LongCollectionCollection.wrap(c));
}
|
public boolean removeElement(long element) {
return getCollection().remove(new Long(element));
}
|
public boolean retainAll(LongCollection c) {
return getCollection().retainAll(LongCollectionCollection.wrap(c));
}
|
public int size() {
return getCollection().size();
}
|
public long[] toArray() {
Object[] src = getCollection().toArray();
long[] dest = new long[src.length];
for(int i=0;i< src.length;i++) {
dest[i] = ((Number)(src[i])).longValue();
}
return dest;
}
|
public long[] toArray(long[] dest) {
Object[] src = getCollection().toArray();
if(dest.length < src.length) {
dest = new long[src.length];
}
for(int i=0;i< src.length;i++) {
dest[i] = ((Number)(src[i])).longValue();
}
return dest;
}
|
public String toString() {
return getCollection().toString();
}
|