org.apache.commons.collections.primitives

Class AbstractLongCollection

public abstract class AbstractLongCollection extends Object implements LongCollection

Abstract base class for LongCollections.

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

Constructor Detail

AbstractLongCollection

protected AbstractLongCollection()

Method Detail

add

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

addAll

public boolean addAll(LongCollection c)

clear

public void clear()

contains

public boolean contains(long element)

containsAll

public boolean containsAll(LongCollection c)

isEmpty

public boolean isEmpty()

iterator

public abstract LongIterator iterator()

removeAll

public boolean removeAll(LongCollection c)

removeElement

public boolean removeElement(long element)

retainAll

public boolean retainAll(LongCollection c)

size

public abstract int size()

toArray

public long[] toArray()

toArray

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