org.apache.commons.collections.primitives
public final class ShortCollections extends Object
The methods of this class all throw a NullPoShorterException if the provided collection is null.
Version: $Revision: 1.1 $ $Date: 2003/10/29 18:57:15 $
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 |
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. |
See Also: ShortCollections
See Also: ShortCollections
See Also: ShortCollections
Returns: an unmodifiable, empty ShortIterator.
See Also: EMPTY_SHORT_ITERATOR
Returns: an unmodifiable, empty ShortList.
See Also: EMPTY_SHORT_LIST
Returns: an unmodifiable, empty ShortListIterator.
See Also: EMPTY_SHORT_LIST_ITERATOR
Parameters: value the single value
Returns: an unmodifiable ShortIterator containing only the specified element.
Parameters: value the single value
Returns: an unmodifiable ShortList containing only the specified element.
Parameters: value the single value
Returns: an unmodifiable ShortListIterator containing only the specified element.
Parameters: iter the non-null ShortIterator to wrap in an unmodifiable decorator
Returns: an unmodifiable version of the given non-null ShortIterator
Throws: NullPoShorterException if the given ShortIterator is null
See Also: UnmodifiableShortIterator
Parameters: list the non-null ShortList to wrap in an unmodifiable decorator
Returns: an unmodifiable version of the given non-null ShortList
Throws: NullPoShorterException if the given ShortList is null
See Also: UnmodifiableShortList
Parameters: iter the non-null ShortListIterator to wrap in an unmodifiable decorator
Returns: an unmodifiable version of the given non-null ShortListIterator
Throws: NullPoShorterException if the given ShortListIterator is null
See Also: UnmodifiableShortListIterator