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