public final class ShortCollections extends Object
The methods of this class all throw a NullPoShorterException if the provided collection is null.
| Modifier and Type | Field and Description |
|---|---|
static ShortIterator |
EMPTY_SHORT_ITERATOR
An unmodifiable, empty ShortIterator
|
static ShortList |
EMPTY_SHORT_LIST
An unmodifiable, empty ShortList
|
static ShortListIterator |
EMPTY_SHORT_LIST_ITERATOR
An unmodifiable, empty ShortListIterator
|
| Constructor and Description |
|---|
ShortCollections() |
| Modifier and Type | Method and Description |
|---|---|
static ShortIterator |
getEmptyShortIterator()
Returns an unmodifiable, empty ShortIterator
|
static ShortList |
getEmptyShortList()
Returns an unmodifiable, empty ShortList.
|
static ShortListIterator |
getEmptyShortListIterator()
Returns an unmodifiable, empty ShortListIterator
|
static ShortIterator |
singletonShortIterator(short value)
Returns an unmodifiable ShortIterator containing only the specified element.
|
static ShortList |
singletonShortList(short value)
Returns an unmodifiable ShortList containing only the specified element.
|
static ShortListIterator |
singletonShortListIterator(short value)
Returns an unmodifiable ShortListIterator containing only the specified element.
|
static ShortIterator |
unmodifiableShortIterator(ShortIterator iter)
Returns an unmodifiable version of the given non-null ShortIterator.
|
static ShortList |
unmodifiableShortList(ShortList list)
Returns an unmodifiable version of the given non-null ShortList.
|
static ShortListIterator |
unmodifiableShortListIterator(ShortListIterator iter)
Returns an unmodifiable version of the given non-null ShortListIterator.
|
public static final ShortList EMPTY_SHORT_LIST
getEmptyShortList()public static final ShortIterator EMPTY_SHORT_ITERATOR
getEmptyShortIterator()public static final ShortListIterator EMPTY_SHORT_LIST_ITERATOR
getEmptyShortListIterator()public ShortCollections()
public static ShortList singletonShortList(short value)
value - the single valuepublic static ShortIterator singletonShortIterator(short value)
value - the single valuepublic static ShortListIterator singletonShortListIterator(short value)
value - the single valuepublic static ShortList unmodifiableShortList(ShortList list) throws NullPointerException
list - the non-null ShortList to wrap in an unmodifiable decoratorNullPointerException - if the given ShortList is nullUnmodifiableShortList.wrap(org.apache.commons.collections.primitives.ShortList)public static ShortIterator unmodifiableShortIterator(ShortIterator iter)
iter - the non-null ShortIterator to wrap in an unmodifiable decoratorNullPointerException - if the given ShortIterator is nullUnmodifiableShortIterator.wrap(org.apache.commons.collections.primitives.ShortIterator)public static ShortListIterator unmodifiableShortListIterator(ShortListIterator iter)
iter - the non-null ShortListIterator to wrap in an unmodifiable decoratorNullPointerException - if the given ShortListIterator is nullUnmodifiableShortListIterator.wrap(org.apache.commons.collections.primitives.ShortListIterator)public static ShortList getEmptyShortList()
EMPTY_SHORT_LISTpublic static ShortIterator getEmptyShortIterator()
EMPTY_SHORT_ITERATORpublic static ShortListIterator getEmptyShortListIterator()
EMPTY_SHORT_LIST_ITERATORCopyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.