org.apache.commons.collections.primitives

Class RandomAccessFloatList

public abstract class RandomAccessFloatList extends AbstractFloatCollection implements FloatList

Abstract base class for FloatLists backed by random access structures like arrays.

Read-only subclasses must override RandomAccessFloatList and RandomAccessFloatList. Mutable subclasses should also override RandomAccessFloatList. Variably-sized subclasses should also override RandomAccessFloatList and RandomAccessFloatList. 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:35 $

Author: Rodney Waldhoff

Nested Class Summary
static classRandomAccessFloatList.ComodChecker
protected static classRandomAccessFloatList.RandomAccessFloatListIterator
protected static classRandomAccessFloatList.RandomAccessFloatSubList
Field Summary
int_modCount
Constructor Summary
protected RandomAccessFloatList()
Constructs an empty list.
Method Summary
voidadd(int index, float element)
Unsupported in this implementation.
booleanadd(float element)
booleanaddAll(int index, FloatCollection collection)
booleanequals(Object that)
abstract floatget(int index)
protected intgetModCount()
Get my count of structural modifications.
inthashCode()
protected voidincrModCount()
Increment my count of structural modifications.
intindexOf(float element)
FloatIteratoriterator()
intlastIndexOf(float element)
FloatListIteratorlistIterator()
FloatListIteratorlistIterator(int index)
floatremoveElementAt(int index)
Unsupported in this implementation.
floatset(int index, float element)
Unsupported in this implementation.
abstract intsize()
FloatListsubList(int fromIndex, int toIndex)
StringtoString()

Field Detail

_modCount

private int _modCount

Constructor Detail

RandomAccessFloatList

protected RandomAccessFloatList()
Constructs an empty list.

Method Detail

add

public void add(int index, float element)
Unsupported in this implementation.

Throws: UnsupportedOperationException since this method is not supported

add

public boolean add(float element)

addAll

public boolean addAll(int index, FloatCollection collection)

equals

public boolean equals(Object that)

get

public abstract float get(int index)

getModCount

protected int getModCount()
Get my count of structural modifications.

hashCode

public int hashCode()

incrModCount

protected void incrModCount()
Increment my count of structural modifications.

indexOf

public int indexOf(float element)

iterator

public FloatIterator iterator()

lastIndexOf

public int lastIndexOf(float element)

listIterator

public FloatListIterator listIterator()

listIterator

public FloatListIterator listIterator(int index)

removeElementAt

public float removeElementAt(int index)
Unsupported in this implementation.

Throws: UnsupportedOperationException since this method is not supported

set

public float set(int index, float element)
Unsupported in this implementation.

Throws: UnsupportedOperationException since this method is not supported

size

public abstract int size()

subList

public FloatList subList(int fromIndex, int toIndex)

toString

public String toString()
Copyright (c) 2002-2003 - Apache Software Foundation