org.apache.commons.collections.primitives

Class DoubleCollections

public final class DoubleCollections extends Object

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

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

Version: $Revision: 1.1 $ $Date: 2003/10/29 19:39:12 $

Author: Rodney Waldhoff

Field Summary
static DoubleIteratorEMPTY_DOUBLE_ITERATOR
An unmodifiable, empty DoubleIterator
static DoubleListEMPTY_DOUBLE_LIST
An unmodifiable, empty DoubleList
static DoubleListIteratorEMPTY_DOUBLE_LIST_ITERATOR
An unmodifiable, empty DoubleListIterator
Method Summary
static DoubleIteratorgetEmptyDoubleIterator()
Returns an unmodifiable, empty DoubleIterator
static DoubleListgetEmptyDoubleList()
Returns an unmodifiable, empty DoubleList.
static DoubleListIteratorgetEmptyDoubleListIterator()
Returns an unmodifiable, empty DoubleListIterator
static DoubleIteratorsingletonDoubleIterator(double value)
Returns an unmodifiable DoubleIterator containing only the specified element.
static DoubleListsingletonDoubleList(double value)
Returns an unmodifiable DoubleList containing only the specified element.
static DoubleListIteratorsingletonDoubleListIterator(double value)
Returns an unmodifiable DoubleListIterator containing only the specified element.
static DoubleIteratorunmodifiableDoubleIterator(DoubleIterator iter)
Returns an unmodifiable version of the given non-null DoubleIterator.
static DoubleListunmodifiableDoubleList(DoubleList list)
Returns an unmodifiable version of the given non-null DoubleList.
static DoubleListIteratorunmodifiableDoubleListIterator(DoubleListIterator iter)
Returns an unmodifiable version of the given non-null DoubleListIterator.

Field Detail

EMPTY_DOUBLE_ITERATOR

public static final DoubleIterator EMPTY_DOUBLE_ITERATOR
An unmodifiable, empty DoubleIterator

See Also: DoubleCollections

EMPTY_DOUBLE_LIST

public static final DoubleList EMPTY_DOUBLE_LIST
An unmodifiable, empty DoubleList

See Also: DoubleCollections

EMPTY_DOUBLE_LIST_ITERATOR

public static final DoubleListIterator EMPTY_DOUBLE_LIST_ITERATOR
An unmodifiable, empty DoubleListIterator

See Also: DoubleCollections

Method Detail

getEmptyDoubleIterator

public static DoubleIterator getEmptyDoubleIterator()
Returns an unmodifiable, empty DoubleIterator

Returns: an unmodifiable, empty DoubleIterator.

See Also: EMPTY_DOUBLE_ITERATOR

getEmptyDoubleList

public static DoubleList getEmptyDoubleList()
Returns an unmodifiable, empty DoubleList.

Returns: an unmodifiable, empty DoubleList.

See Also: EMPTY_DOUBLE_LIST

getEmptyDoubleListIterator

public static DoubleListIterator getEmptyDoubleListIterator()
Returns an unmodifiable, empty DoubleListIterator

Returns: an unmodifiable, empty DoubleListIterator.

See Also: EMPTY_DOUBLE_LIST_ITERATOR

singletonDoubleIterator

public static DoubleIterator singletonDoubleIterator(double value)
Returns an unmodifiable DoubleIterator containing only the specified element.

Parameters: value the single value

Returns: an unmodifiable DoubleIterator containing only the specified element.

singletonDoubleList

public static DoubleList singletonDoubleList(double value)
Returns an unmodifiable DoubleList containing only the specified element.

Parameters: value the single value

Returns: an unmodifiable DoubleList containing only the specified element.

singletonDoubleListIterator

public static DoubleListIterator singletonDoubleListIterator(double value)
Returns an unmodifiable DoubleListIterator containing only the specified element.

Parameters: value the single value

Returns: an unmodifiable DoubleListIterator containing only the specified element.

unmodifiableDoubleIterator

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

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

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

Throws: NullPoDoubleerException if the given DoubleIterator is null

See Also: UnmodifiableDoubleIterator

unmodifiableDoubleList

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

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

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

Throws: NullPoDoubleerException if the given DoubleList is null

See Also: UnmodifiableDoubleList

unmodifiableDoubleListIterator

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

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

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

Throws: NullPoDoubleerException if the given DoubleListIterator is null

See Also: UnmodifiableDoubleListIterator

Copyright (c) 2002-2003 - Apache Software Foundation