| Method from org.apache.commons.collections.primitives.adapters.AbstractCharCollectionCollection Detail: |
public boolean add(Object element) {
return getCharCollection().add(((Character)element).charValue());
}
|
public boolean addAll(Collection c) {
return getCharCollection().addAll(CollectionCharCollection.wrap(c));
}
|
public void clear() {
getCharCollection().clear();
}
|
public boolean contains(Object element) {
return getCharCollection().contains(((Character)element).charValue());
}
|
public boolean containsAll(Collection c) {
return getCharCollection().containsAll(CollectionCharCollection.wrap(c));
}
|
abstract protected CharCollection getCharCollection()
|
public boolean isEmpty() {
return getCharCollection().isEmpty();
}
|
public Iterator iterator() {
return CharIteratorIterator.wrap(getCharCollection().iterator());
}
|
public boolean remove(Object element) {
return getCharCollection().removeElement(((Character)element).charValue());
}
|
public boolean removeAll(Collection c) {
return getCharCollection().removeAll(CollectionCharCollection.wrap(c));
}
|
public boolean retainAll(Collection c) {
return getCharCollection().retainAll(CollectionCharCollection.wrap(c));
}
|
public int size() {
return getCharCollection().size();
}
|
public Object[] toArray() {
char[] a = getCharCollection().toArray();
Object[] A = new Object[a.length];
for(int i=0;i< a.length;i++) {
A[i] = new Character(a[i]);
}
return A;
}
|
public Object[] toArray(Object[] A) {
char[] a = getCharCollection().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 Character(a[i]);
}
if(A.length > a.length) {
A[a.length] = null;
}
return A;
}
|
public String toString() {
return getCharCollection().toString();
}
|