public final class DoubleCollections extends Object
The methods of this class all throw a NullPoDoubleerException if the provided collection is null.
Modifier and Type | Field and Description |
---|---|
static DoubleIterator |
EMPTY_DOUBLE_ITERATOR
An unmodifiable, empty DoubleIterator
|
static DoubleList |
EMPTY_DOUBLE_LIST
An unmodifiable, empty DoubleList
|
static DoubleListIterator |
EMPTY_DOUBLE_LIST_ITERATOR
An unmodifiable, empty DoubleListIterator
|
Constructor and Description |
---|
DoubleCollections() |
Modifier and Type | Method and Description |
---|---|
static DoubleIterator |
getEmptyDoubleIterator()
Returns an unmodifiable, empty DoubleIterator
|
static DoubleList |
getEmptyDoubleList()
Returns an unmodifiable, empty DoubleList.
|
static DoubleListIterator |
getEmptyDoubleListIterator()
Returns an unmodifiable, empty DoubleListIterator
|
static DoubleIterator |
singletonDoubleIterator(double value)
Returns an unmodifiable DoubleIterator containing only the specified element.
|
static DoubleList |
singletonDoubleList(double value)
Returns an unmodifiable DoubleList containing only the specified element.
|
static DoubleListIterator |
singletonDoubleListIterator(double value)
Returns an unmodifiable DoubleListIterator containing only the specified element.
|
static DoubleIterator |
unmodifiableDoubleIterator(DoubleIterator iter)
Returns an unmodifiable version of the given non-null DoubleIterator.
|
static DoubleList |
unmodifiableDoubleList(DoubleList list)
Returns an unmodifiable version of the given non-null DoubleList.
|
static DoubleListIterator |
unmodifiableDoubleListIterator(DoubleListIterator iter)
Returns an unmodifiable version of the given non-null DoubleListIterator.
|
public static final DoubleList EMPTY_DOUBLE_LIST
getEmptyDoubleList()
public static final DoubleIterator EMPTY_DOUBLE_ITERATOR
getEmptyDoubleIterator()
public static final DoubleListIterator EMPTY_DOUBLE_LIST_ITERATOR
getEmptyDoubleListIterator()
public DoubleCollections()
public static DoubleList singletonDoubleList(double value)
value
- the single valuepublic static DoubleIterator singletonDoubleIterator(double value)
value
- the single valuepublic static DoubleListIterator singletonDoubleListIterator(double value)
value
- the single valuepublic static DoubleList unmodifiableDoubleList(DoubleList list) throws NullPointerException
list
- the non-null DoubleList to wrap in an unmodifiable decoratorNullPointerException
- if the given DoubleList is nullUnmodifiableDoubleList.wrap(org.apache.commons.collections.primitives.DoubleList)
public static DoubleIterator unmodifiableDoubleIterator(DoubleIterator iter)
iter
- the non-null DoubleIterator to wrap in an unmodifiable decoratorNullPointerException
- if the given DoubleIterator is nullUnmodifiableDoubleIterator.wrap(org.apache.commons.collections.primitives.DoubleIterator)
public static DoubleListIterator unmodifiableDoubleListIterator(DoubleListIterator iter)
iter
- the non-null DoubleListIterator to wrap in an unmodifiable decoratorNullPointerException
- if the given DoubleListIterator is nullUnmodifiableDoubleListIterator.wrap(org.apache.commons.collections.primitives.DoubleListIterator)
public static DoubleList getEmptyDoubleList()
EMPTY_DOUBLE_LIST
public static DoubleIterator getEmptyDoubleIterator()
EMPTY_DOUBLE_ITERATOR
public static DoubleListIterator getEmptyDoubleListIterator()
EMPTY_DOUBLE_LIST_ITERATOR
Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.