|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.collections.primitives.ShortCollections
public final class ShortCollections
This class consists exclusively of static methods that operate on or return ShortCollections.
The methods of this class all throw a NullPoShorterException if the provided collection is null.
Field Summary | |
---|---|
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 Summary | |
---|---|
ShortCollections()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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()
Constructor Detail |
---|
public ShortCollections()
Method Detail |
---|
public static ShortList singletonShortList(short value)
value
- the single value
public static ShortIterator singletonShortIterator(short value)
value
- the single value
public static ShortListIterator singletonShortListIterator(short value)
value
- the single value
public static ShortList unmodifiableShortList(ShortList list) throws java.lang.NullPointerException
list
- the non-null ShortList to wrap in an unmodifiable decorator
NullPoShorterException
- if the given ShortList is null
java.lang.NullPointerException
UnmodifiableShortList.wrap(org.apache.commons.collections.primitives.ShortList)
public static ShortIterator unmodifiableShortIterator(ShortIterator iter)
iter
- the non-null ShortIterator to wrap in an unmodifiable decorator
NullPoShorterException
- 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 decorator
NullPoShorterException
- if the given ShortListIterator is nullUnmodifiableShortListIterator.wrap(org.apache.commons.collections.primitives.ShortListIterator)
public static ShortList getEmptyShortList()
EMPTY_SHORT_LIST
public static ShortIterator getEmptyShortIterator()
EMPTY_SHORT_ITERATOR
public static ShortListIterator getEmptyShortListIterator()
EMPTY_SHORT_LIST_ITERATOR
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |