org.apache.commons.collections.primitives

Class AbstractShortCollection

public abstract class AbstractShortCollection extends Object implements ShortCollection

Abstract base class for ShortCollections.

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

Constructor Detail

AbstractShortCollection

protected AbstractShortCollection()

Method Detail

add

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

addAll

public boolean addAll(ShortCollection c)

clear

public void clear()

contains

public boolean contains(short element)

containsAll

public boolean containsAll(ShortCollection c)

isEmpty

public boolean isEmpty()

iterator

public abstract ShortIterator iterator()

removeAll

public boolean removeAll(ShortCollection c)

removeElement

public boolean removeElement(short element)

retainAll

public boolean retainAll(ShortCollection c)

size

public abstract int size()

toArray

public short[] toArray()

toArray

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