org.apache.commons.collections.primitives

Class AbstractByteCollection

public abstract class AbstractByteCollection extends Object implements ByteCollection

Abstract base class for ByteCollections.

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

Constructor Detail

AbstractByteCollection

protected AbstractByteCollection()

Method Detail

add

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

addAll

public boolean addAll(ByteCollection c)

clear

public void clear()

contains

public boolean contains(byte element)

containsAll

public boolean containsAll(ByteCollection c)

isEmpty

public boolean isEmpty()

iterator

public abstract ByteIterator iterator()

removeAll

public boolean removeAll(ByteCollection c)

removeElement

public boolean removeElement(byte element)

retainAll

public boolean retainAll(ByteCollection c)

size

public abstract int size()

toArray

public byte[] toArray()

toArray

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