| Method from org.apache.commons.collections.primitives.adapters.AbstractCollectionCharCollection Detail: |
public boolean add(char element) {
return getCollection().add(new Character(element));
}
|
public boolean addAll(CharCollection c) {
return getCollection().addAll(CharCollectionCollection.wrap(c));
}
|
public void clear() {
getCollection().clear();
}
|
public boolean contains(char element) {
return getCollection().contains(new Character(element));
}
|
public boolean containsAll(CharCollection c) {
return getCollection().containsAll(CharCollectionCollection.wrap(c));
}
|
abstract protected Collection getCollection()
|
public boolean isEmpty() {
return getCollection().isEmpty();
}
|
public CharIterator iterator() {
return IteratorCharIterator.wrap(getCollection().iterator());
}
|
public boolean removeAll(CharCollection c) {
return getCollection().removeAll(CharCollectionCollection.wrap(c));
}
|
public boolean removeElement(char element) {
return getCollection().remove(new Character(element));
}
|
public boolean retainAll(CharCollection c) {
return getCollection().retainAll(CharCollectionCollection.wrap(c));
}
|
public int size() {
return getCollection().size();
}
|
public char[] toArray() {
Object[] src = getCollection().toArray();
char[] dest = new char[src.length];
for(int i=0;i< src.length;i++) {
dest[i] = ((Character)(src[i])).charValue();
}
return dest;
}
|
public char[] toArray(char[] dest) {
Object[] src = getCollection().toArray();
if(dest.length < src.length) {
dest = new char[src.length];
}
for(int i=0;i< src.length;i++) {
dest[i] = ((Character)(src[i])).charValue();
}
return dest;
}
|
public String toString() {
return getCollection().toString();
}
|