org.apache.commons.collections.primitives

Class FloatCollections

public final class FloatCollections extends Object

This class consists exclusively of static methods that operate on or return FloatCollections.

The methods of this class all throw a NullPoFloaterException if the provided collection is null.

Version: $Revision: 1.1 $ $Date: 2003/10/29 20:07:54 $

Author: Rodney Waldhoff

Field Summary
static FloatIteratorEMPTY_FLOAT_ITERATOR
An unmodifiable, empty FloatIterator
static FloatListEMPTY_FLOAT_LIST
An unmodifiable, empty FloatList
static FloatListIteratorEMPTY_FLOAT_LIST_ITERATOR
An unmodifiable, empty FloatListIterator
Method Summary
static FloatIteratorgetEmptyFloatIterator()
Returns an unmodifiable, empty FloatIterator
static FloatListgetEmptyFloatList()
Returns an unmodifiable, empty FloatList.
static FloatListIteratorgetEmptyFloatListIterator()
Returns an unmodifiable, empty FloatListIterator
static FloatIteratorsingletonFloatIterator(float value)
Returns an unmodifiable FloatIterator containing only the specified element.
static FloatListsingletonFloatList(float value)
Returns an unmodifiable FloatList containing only the specified element.
static FloatListIteratorsingletonFloatListIterator(float value)
Returns an unmodifiable FloatListIterator containing only the specified element.
static FloatIteratorunmodifiableFloatIterator(FloatIterator iter)
Returns an unmodifiable version of the given non-null FloatIterator.
static FloatListunmodifiableFloatList(FloatList list)
Returns an unmodifiable version of the given non-null FloatList.
static FloatListIteratorunmodifiableFloatListIterator(FloatListIterator iter)
Returns an unmodifiable version of the given non-null FloatListIterator.

Field Detail

EMPTY_FLOAT_ITERATOR

public static final FloatIterator EMPTY_FLOAT_ITERATOR
An unmodifiable, empty FloatIterator

See Also: FloatCollections

EMPTY_FLOAT_LIST

public static final FloatList EMPTY_FLOAT_LIST
An unmodifiable, empty FloatList

See Also: FloatCollections

EMPTY_FLOAT_LIST_ITERATOR

public static final FloatListIterator EMPTY_FLOAT_LIST_ITERATOR
An unmodifiable, empty FloatListIterator

See Also: FloatCollections

Method Detail

getEmptyFloatIterator

public static FloatIterator getEmptyFloatIterator()
Returns an unmodifiable, empty FloatIterator

Returns: an unmodifiable, empty FloatIterator.

See Also: EMPTY_FLOAT_ITERATOR

getEmptyFloatList

public static FloatList getEmptyFloatList()
Returns an unmodifiable, empty FloatList.

Returns: an unmodifiable, empty FloatList.

See Also: EMPTY_FLOAT_LIST

getEmptyFloatListIterator

public static FloatListIterator getEmptyFloatListIterator()
Returns an unmodifiable, empty FloatListIterator

Returns: an unmodifiable, empty FloatListIterator.

See Also: EMPTY_FLOAT_LIST_ITERATOR

singletonFloatIterator

public static FloatIterator singletonFloatIterator(float value)
Returns an unmodifiable FloatIterator containing only the specified element.

Parameters: value the single value

Returns: an unmodifiable FloatIterator containing only the specified element.

singletonFloatList

public static FloatList singletonFloatList(float value)
Returns an unmodifiable FloatList containing only the specified element.

Parameters: value the single value

Returns: an unmodifiable FloatList containing only the specified element.

singletonFloatListIterator

public static FloatListIterator singletonFloatListIterator(float value)
Returns an unmodifiable FloatListIterator containing only the specified element.

Parameters: value the single value

Returns: an unmodifiable FloatListIterator containing only the specified element.

unmodifiableFloatIterator

public static FloatIterator unmodifiableFloatIterator(FloatIterator iter)
Returns an unmodifiable version of the given non-null FloatIterator.

Parameters: iter the non-null FloatIterator to wrap in an unmodifiable decorator

Returns: an unmodifiable version of the given non-null FloatIterator

Throws: NullPoFloaterException if the given FloatIterator is null

See Also: UnmodifiableFloatIterator

unmodifiableFloatList

public static FloatList unmodifiableFloatList(FloatList list)
Returns an unmodifiable version of the given non-null FloatList.

Parameters: list the non-null FloatList to wrap in an unmodifiable decorator

Returns: an unmodifiable version of the given non-null FloatList

Throws: NullPoFloaterException if the given FloatList is null

See Also: UnmodifiableFloatList

unmodifiableFloatListIterator

public static FloatListIterator unmodifiableFloatListIterator(FloatListIterator iter)
Returns an unmodifiable version of the given non-null FloatListIterator.

Parameters: iter the non-null FloatListIterator to wrap in an unmodifiable decorator

Returns: an unmodifiable version of the given non-null FloatListIterator

Throws: NullPoFloaterException if the given FloatListIterator is null

See Also: UnmodifiableFloatListIterator

Copyright (c) 2002-2003 - Apache Software Foundation