org.apache.commons.collections.primitives

Class ShortCollections

public final class ShortCollections extends Object

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.

Version: $Revision: 1.1 $ $Date: 2003/10/29 18:57:15 $

Author: Rodney Waldhoff

Field Summary
static ShortIteratorEMPTY_SHORT_ITERATOR
An unmodifiable, empty ShortIterator
static ShortListEMPTY_SHORT_LIST
An unmodifiable, empty ShortList
static ShortListIteratorEMPTY_SHORT_LIST_ITERATOR
An unmodifiable, empty ShortListIterator
Method Summary
static ShortIteratorgetEmptyShortIterator()
Returns an unmodifiable, empty ShortIterator
static ShortListgetEmptyShortList()
Returns an unmodifiable, empty ShortList.
static ShortListIteratorgetEmptyShortListIterator()
Returns an unmodifiable, empty ShortListIterator
static ShortIteratorsingletonShortIterator(short value)
Returns an unmodifiable ShortIterator containing only the specified element.
static ShortListsingletonShortList(short value)
Returns an unmodifiable ShortList containing only the specified element.
static ShortListIteratorsingletonShortListIterator(short value)
Returns an unmodifiable ShortListIterator containing only the specified element.
static ShortIteratorunmodifiableShortIterator(ShortIterator iter)
Returns an unmodifiable version of the given non-null ShortIterator.
static ShortListunmodifiableShortList(ShortList list)
Returns an unmodifiable version of the given non-null ShortList.
static ShortListIteratorunmodifiableShortListIterator(ShortListIterator iter)
Returns an unmodifiable version of the given non-null ShortListIterator.

Field Detail

EMPTY_SHORT_ITERATOR

public static final ShortIterator EMPTY_SHORT_ITERATOR
An unmodifiable, empty ShortIterator

See Also: ShortCollections

EMPTY_SHORT_LIST

public static final ShortList EMPTY_SHORT_LIST
An unmodifiable, empty ShortList

See Also: ShortCollections

EMPTY_SHORT_LIST_ITERATOR

public static final ShortListIterator EMPTY_SHORT_LIST_ITERATOR
An unmodifiable, empty ShortListIterator

See Also: ShortCollections

Method Detail

getEmptyShortIterator

public static ShortIterator getEmptyShortIterator()
Returns an unmodifiable, empty ShortIterator

Returns: an unmodifiable, empty ShortIterator.

See Also: EMPTY_SHORT_ITERATOR

getEmptyShortList

public static ShortList getEmptyShortList()
Returns an unmodifiable, empty ShortList.

Returns: an unmodifiable, empty ShortList.

See Also: EMPTY_SHORT_LIST

getEmptyShortListIterator

public static ShortListIterator getEmptyShortListIterator()
Returns an unmodifiable, empty ShortListIterator

Returns: an unmodifiable, empty ShortListIterator.

See Also: EMPTY_SHORT_LIST_ITERATOR

singletonShortIterator

public static ShortIterator singletonShortIterator(short value)
Returns an unmodifiable ShortIterator containing only the specified element.

Parameters: value the single value

Returns: an unmodifiable ShortIterator containing only the specified element.

singletonShortList

public static ShortList singletonShortList(short value)
Returns an unmodifiable ShortList containing only the specified element.

Parameters: value the single value

Returns: an unmodifiable ShortList containing only the specified element.

singletonShortListIterator

public static ShortListIterator singletonShortListIterator(short value)
Returns an unmodifiable ShortListIterator containing only the specified element.

Parameters: value the single value

Returns: an unmodifiable ShortListIterator containing only the specified element.

unmodifiableShortIterator

public static ShortIterator unmodifiableShortIterator(ShortIterator iter)
Returns an unmodifiable version of the given non-null ShortIterator.

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

unmodifiableShortList

public static ShortList unmodifiableShortList(ShortList list)
Returns an unmodifiable version of the given non-null ShortList.

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

unmodifiableShortListIterator

public static ShortListIterator unmodifiableShortListIterator(ShortListIterator iter)
Returns an unmodifiable version of the given non-null ShortListIterator.

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

Copyright (c) 2002-2003 - Apache Software Foundation