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