|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.collections.primitives.DoubleCollections
public final class DoubleCollections
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.
Field Summary | |
---|---|
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 Summary | |
---|---|
DoubleCollections()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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()
Constructor Detail |
---|
public DoubleCollections()
Method Detail |
---|
public static DoubleList singletonDoubleList(double value)
value
- the single value
public static DoubleIterator singletonDoubleIterator(double value)
value
- the single value
public static DoubleListIterator singletonDoubleListIterator(double value)
value
- the single value
public static DoubleList unmodifiableDoubleList(DoubleList list) throws java.lang.NullPointerException
list
- the non-null DoubleList to wrap in an unmodifiable decorator
NullPoDoubleerException
- if the given DoubleList is null
java.lang.NullPointerException
UnmodifiableDoubleList.wrap(org.apache.commons.collections.primitives.DoubleList)
public static DoubleIterator unmodifiableDoubleIterator(DoubleIterator iter)
iter
- the non-null DoubleIterator to wrap in an unmodifiable decorator
NullPoDoubleerException
- 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 decorator
NullPoDoubleerException
- 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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |