org.apache.commons.collections.primitives

Class AbstractCharCollection

public abstract class AbstractCharCollection extends Object implements CharCollection

Abstract base class for CharCollections.

Read-only subclasses must override AbstractCharCollection and AbstractCharCollection. Mutable subclasses should also override AbstractCharCollection and CharIterator.remove. All other methods have at least some base implementation derived from these. Subclasses may choose to override these methods to provide a more efficient implementation.

Since: Commons Primitives 1.0

Version: $Revision: 1.3 $ $Date: 2003/10/16 20:49:36 $

Author: Rodney Waldhoff

Constructor Summary
protected AbstractCharCollection()
Method Summary
booleanadd(char element)
Unsupported in this base implementation.
booleanaddAll(CharCollection c)
voidclear()
booleancontains(char element)
booleancontainsAll(CharCollection c)
booleanisEmpty()
abstract CharIteratoriterator()
booleanremoveAll(CharCollection c)
booleanremoveElement(char element)
booleanretainAll(CharCollection c)
abstract intsize()
char[]toArray()
char[]toArray(char[] a)

Constructor Detail

AbstractCharCollection

protected AbstractCharCollection()

Method Detail

add

public boolean add(char element)
Unsupported in this base implementation.

addAll

public boolean addAll(CharCollection c)

clear

public void clear()

contains

public boolean contains(char element)

containsAll

public boolean containsAll(CharCollection c)

isEmpty

public boolean isEmpty()

iterator

public abstract CharIterator iterator()

removeAll

public boolean removeAll(CharCollection c)

removeElement

public boolean removeElement(char element)

retainAll

public boolean retainAll(CharCollection c)

size

public abstract int size()

toArray

public char[] toArray()

toArray

public char[] toArray(char[] a)
Copyright (c) 2002-2003 - Apache Software Foundation