org.apache.commons.collections.primitives

Class AbstractDoubleCollection

public abstract class AbstractDoubleCollection extends Object implements DoubleCollection

Abstract base class for DoubleCollections.

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

Constructor Detail

AbstractDoubleCollection

protected AbstractDoubleCollection()

Method Detail

add

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

addAll

public boolean addAll(DoubleCollection c)

clear

public void clear()

contains

public boolean contains(double element)

containsAll

public boolean containsAll(DoubleCollection c)

isEmpty

public boolean isEmpty()

iterator

public abstract DoubleIterator iterator()

removeAll

public boolean removeAll(DoubleCollection c)

removeElement

public boolean removeElement(double element)

retainAll

public boolean retainAll(DoubleCollection c)

size

public abstract int size()

toArray

public double[] toArray()

toArray

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