org.apache.commons.collections.primitives

Class AbstractIntCollection

public abstract class AbstractIntCollection extends Object implements IntCollection

Abstract base class for IntCollections.

Read-only subclasses must override AbstractIntCollection and AbstractIntCollection. Mutable subclasses should also override AbstractIntCollection and IntIterator.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 AbstractIntCollection()
Method Summary
booleanadd(int element)
Unsupported in this base implementation.
booleanaddAll(IntCollection c)
voidclear()
booleancontains(int element)
booleancontainsAll(IntCollection c)
booleanisEmpty()
abstract IntIteratoriterator()
booleanremoveAll(IntCollection c)
booleanremoveElement(int element)
booleanretainAll(IntCollection c)
abstract intsize()
int[]toArray()
int[]toArray(int[] a)

Constructor Detail

AbstractIntCollection

protected AbstractIntCollection()

Method Detail

add

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

addAll

public boolean addAll(IntCollection c)

clear

public void clear()

contains

public boolean contains(int element)

containsAll

public boolean containsAll(IntCollection c)

isEmpty

public boolean isEmpty()

iterator

public abstract IntIterator iterator()

removeAll

public boolean removeAll(IntCollection c)

removeElement

public boolean removeElement(int element)

retainAll

public boolean retainAll(IntCollection c)

size

public abstract int size()

toArray

public int[] toArray()

toArray

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