public final class IntCollections extends Object
The methods of this class all throw a NullPointerException if the provided collection is null.
| Modifier and Type | Field and Description |
|---|---|
static IntIterator |
EMPTY_INT_ITERATOR
An unmodifiable, empty IntIterator
|
static IntList |
EMPTY_INT_LIST
An unmodifiable, empty IntList
|
static IntListIterator |
EMPTY_INT_LIST_ITERATOR
An unmodifiable, empty IntListIterator
|
| Constructor and Description |
|---|
IntCollections() |
| Modifier and Type | Method and Description |
|---|---|
static IntIterator |
getEmptyIntIterator()
Returns an unmodifiable, empty IntIterator
|
static IntList |
getEmptyIntList()
Returns an unmodifiable, empty IntList.
|
static IntListIterator |
getEmptyIntListIterator()
Returns an unmodifiable, empty IntListIterator
|
static IntIterator |
singletonIntIterator(int value)
Returns an unmodifiable IntIterator containing only the specified element.
|
static IntList |
singletonIntList(int value)
Returns an unmodifiable IntList containing only the specified element.
|
static IntListIterator |
singletonIntListIterator(int value)
Returns an unmodifiable IntListIterator containing only the specified element.
|
static IntIterator |
unmodifiableIntIterator(IntIterator iter)
Returns an unmodifiable version of the given non-null IntIterator.
|
static IntList |
unmodifiableIntList(IntList list)
Returns an unmodifiable version of the given non-null IntList.
|
static IntListIterator |
unmodifiableIntListIterator(IntListIterator iter)
Returns an unmodifiable version of the given non-null IntListIterator.
|
public static final IntList EMPTY_INT_LIST
getEmptyIntList()public static final IntIterator EMPTY_INT_ITERATOR
getEmptyIntIterator()public static final IntListIterator EMPTY_INT_LIST_ITERATOR
getEmptyIntListIterator()public IntCollections()
public static IntList singletonIntList(int value)
value - the single valuepublic static IntIterator singletonIntIterator(int value)
value - the single valuepublic static IntListIterator singletonIntListIterator(int value)
value - the single valuepublic static IntList unmodifiableIntList(IntList list) throws NullPointerException
list - the non-null IntList to wrap in an unmodifiable decoratorNullPointerException - if the given IntList is nullUnmodifiableIntList.wrap(org.apache.commons.collections.primitives.IntList)public static IntIterator unmodifiableIntIterator(IntIterator iter)
iter - the non-null IntIterator to wrap in an unmodifiable decoratorNullPointerException - if the given IntIterator is nullUnmodifiableIntIterator.wrap(org.apache.commons.collections.primitives.IntIterator)public static IntListIterator unmodifiableIntListIterator(IntListIterator iter)
iter - the non-null IntListIterator to wrap in an unmodifiable decoratorNullPointerException - if the given IntListIterator is nullUnmodifiableIntListIterator.wrap(org.apache.commons.collections.primitives.IntListIterator)public static IntList getEmptyIntList()
EMPTY_INT_LISTpublic static IntIterator getEmptyIntIterator()
EMPTY_INT_ITERATORpublic static IntListIterator getEmptyIntListIterator()
EMPTY_INT_LIST_ITERATORCopyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.