| Method from org.apache.commons.collections.primitives.adapters.AbstractCollectionByteCollection Detail: |
public boolean add(byte element) {
return getCollection().add(new Byte(element));
}
|
public boolean addAll(ByteCollection c) {
return getCollection().addAll(ByteCollectionCollection.wrap(c));
}
|
public void clear() {
getCollection().clear();
}
|
public boolean contains(byte element) {
return getCollection().contains(new Byte(element));
}
|
public boolean containsAll(ByteCollection c) {
return getCollection().containsAll(ByteCollectionCollection.wrap(c));
}
|
abstract protected Collection getCollection()
|
public boolean isEmpty() {
return getCollection().isEmpty();
}
|
public ByteIterator iterator() {
return IteratorByteIterator.wrap(getCollection().iterator());
}
|
public boolean removeAll(ByteCollection c) {
return getCollection().removeAll(ByteCollectionCollection.wrap(c));
}
|
public boolean removeElement(byte element) {
return getCollection().remove(new Byte(element));
}
|
public boolean retainAll(ByteCollection c) {
return getCollection().retainAll(ByteCollectionCollection.wrap(c));
}
|
public int size() {
return getCollection().size();
}
|
public byte[] toArray() {
Object[] src = getCollection().toArray();
byte[] dest = new byte[src.length];
for(int i=0;i< src.length;i++) {
dest[i] = ((Number)(src[i])).byteValue();
}
return dest;
}
|
public byte[] toArray(byte[] dest) {
Object[] src = getCollection().toArray();
if(dest.length < src.length) {
dest = new byte[src.length];
}
for(int i=0;i< src.length;i++) {
dest[i] = ((Number)(src[i])).byteValue();
}
return dest;
}
|
public String toString() {
return getCollection().toString();
}
|