public final class FloatCollections extends Object
The methods of this class all throw a NullPoFloaterException if the provided collection is null.
| Modifier and Type | Field and Description |
|---|---|
static FloatIterator |
EMPTY_FLOAT_ITERATOR
An unmodifiable, empty FloatIterator
|
static FloatList |
EMPTY_FLOAT_LIST
An unmodifiable, empty FloatList
|
static FloatListIterator |
EMPTY_FLOAT_LIST_ITERATOR
An unmodifiable, empty FloatListIterator
|
| Constructor and Description |
|---|
FloatCollections() |
| Modifier and Type | Method and Description |
|---|---|
static FloatIterator |
getEmptyFloatIterator()
Returns an unmodifiable, empty FloatIterator
|
static FloatList |
getEmptyFloatList()
Returns an unmodifiable, empty FloatList.
|
static FloatListIterator |
getEmptyFloatListIterator()
Returns an unmodifiable, empty FloatListIterator
|
static FloatIterator |
singletonFloatIterator(float value)
Returns an unmodifiable FloatIterator containing only the specified element.
|
static FloatList |
singletonFloatList(float value)
Returns an unmodifiable FloatList containing only the specified element.
|
static FloatListIterator |
singletonFloatListIterator(float value)
Returns an unmodifiable FloatListIterator containing only the specified element.
|
static FloatIterator |
unmodifiableFloatIterator(FloatIterator iter)
Returns an unmodifiable version of the given non-null FloatIterator.
|
static FloatList |
unmodifiableFloatList(FloatList list)
Returns an unmodifiable version of the given non-null FloatList.
|
static FloatListIterator |
unmodifiableFloatListIterator(FloatListIterator iter)
Returns an unmodifiable version of the given non-null FloatListIterator.
|
public static final FloatList EMPTY_FLOAT_LIST
getEmptyFloatList()public static final FloatIterator EMPTY_FLOAT_ITERATOR
getEmptyFloatIterator()public static final FloatListIterator EMPTY_FLOAT_LIST_ITERATOR
getEmptyFloatListIterator()public FloatCollections()
public static FloatList singletonFloatList(float value)
value - the single valuepublic static FloatIterator singletonFloatIterator(float value)
value - the single valuepublic static FloatListIterator singletonFloatListIterator(float value)
value - the single valuepublic static FloatList unmodifiableFloatList(FloatList list) throws NullPointerException
list - the non-null FloatList to wrap in an unmodifiable decoratorNullPointerException - if the given FloatList is nullUnmodifiableFloatList.wrap(org.apache.commons.collections.primitives.FloatList)public static FloatIterator unmodifiableFloatIterator(FloatIterator iter)
iter - the non-null FloatIterator to wrap in an unmodifiable decoratorNullPointerException - if the given FloatIterator is nullUnmodifiableFloatIterator.wrap(org.apache.commons.collections.primitives.FloatIterator)public static FloatListIterator unmodifiableFloatListIterator(FloatListIterator iter)
iter - the non-null FloatListIterator to wrap in an unmodifiable decoratorNullPointerException - if the given FloatListIterator is nullUnmodifiableFloatListIterator.wrap(org.apache.commons.collections.primitives.FloatListIterator)public static FloatList getEmptyFloatList()
EMPTY_FLOAT_LISTpublic static FloatIterator getEmptyFloatIterator()
EMPTY_FLOAT_ITERATORpublic static FloatListIterator getEmptyFloatListIterator()
EMPTY_FLOAT_LIST_ITERATORCopyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.