org.apache.commons.collections.primitives

Class LongCollections

public final class LongCollections extends Object

This class consists exclusively of static methods that operate on or return LongCollections.

The methods of this class all throw a NullPoLongerException if the provided collection is null.

Version: $Revision: 1.1 $ $Date: 2003/10/27 23:46:10 $

Author: Rodney Waldhoff

Field Summary
static LongIteratorEMPTY_LONG_ITERATOR
An unmodifiable, empty LongIterator
static LongListEMPTY_LONG_LIST
An unmodifiable, empty LongList
static LongListIteratorEMPTY_LONG_LIST_ITERATOR
An unmodifiable, empty LongListIterator
Method Summary
static LongIteratorgetEmptyLongIterator()
Returns an unmodifiable, empty LongIterator
static LongListgetEmptyLongList()
Returns an unmodifiable, empty LongList.
static LongListIteratorgetEmptyLongListIterator()
Returns an unmodifiable, empty LongListIterator
static LongIteratorsingletonLongIterator(long value)
Returns an unmodifiable LongIterator containing only the specified element.
static LongListsingletonLongList(long value)
Returns an unmodifiable LongList containing only the specified element.
static LongListIteratorsingletonLongListIterator(long value)
Returns an unmodifiable LongListIterator containing only the specified element.
static LongIteratorunmodifiableLongIterator(LongIterator iter)
Returns an unmodifiable version of the given non-null LongIterator.
static LongListunmodifiableLongList(LongList list)
Returns an unmodifiable version of the given non-null LongList.
static LongListIteratorunmodifiableLongListIterator(LongListIterator iter)
Returns an unmodifiable version of the given non-null LongListIterator.

Field Detail

EMPTY_LONG_ITERATOR

public static final LongIterator EMPTY_LONG_ITERATOR
An unmodifiable, empty LongIterator

See Also: LongCollections

EMPTY_LONG_LIST

public static final LongList EMPTY_LONG_LIST
An unmodifiable, empty LongList

See Also: LongCollections

EMPTY_LONG_LIST_ITERATOR

public static final LongListIterator EMPTY_LONG_LIST_ITERATOR
An unmodifiable, empty LongListIterator

See Also: LongCollections

Method Detail

getEmptyLongIterator

public static LongIterator getEmptyLongIterator()
Returns an unmodifiable, empty LongIterator

Returns: an unmodifiable, empty LongIterator.

See Also: EMPTY_LONG_ITERATOR

getEmptyLongList

public static LongList getEmptyLongList()
Returns an unmodifiable, empty LongList.

Returns: an unmodifiable, empty LongList.

See Also: EMPTY_LONG_LIST

getEmptyLongListIterator

public static LongListIterator getEmptyLongListIterator()
Returns an unmodifiable, empty LongListIterator

Returns: an unmodifiable, empty LongListIterator.

See Also: EMPTY_LONG_LIST_ITERATOR

singletonLongIterator

public static LongIterator singletonLongIterator(long value)
Returns an unmodifiable LongIterator containing only the specified element.

Parameters: value the single value

Returns: an unmodifiable LongIterator containing only the specified element.

singletonLongList

public static LongList singletonLongList(long value)
Returns an unmodifiable LongList containing only the specified element.

Parameters: value the single value

Returns: an unmodifiable LongList containing only the specified element.

singletonLongListIterator

public static LongListIterator singletonLongListIterator(long value)
Returns an unmodifiable LongListIterator containing only the specified element.

Parameters: value the single value

Returns: an unmodifiable LongListIterator containing only the specified element.

unmodifiableLongIterator

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

Parameters: iter the non-null LongIterator to wrap in an unmodifiable decorator

Returns: an unmodifiable version of the given non-null LongIterator

Throws: NullPoLongerException if the given LongIterator is null

See Also: UnmodifiableLongIterator

unmodifiableLongList

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

Parameters: list the non-null LongList to wrap in an unmodifiable decorator

Returns: an unmodifiable version of the given non-null LongList

Throws: NullPoLongerException if the given LongList is null

See Also: UnmodifiableLongList

unmodifiableLongListIterator

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

Parameters: iter the non-null LongListIterator to wrap in an unmodifiable decorator

Returns: an unmodifiable version of the given non-null LongListIterator

Throws: NullPoLongerException if the given LongListIterator is null

See Also: UnmodifiableLongListIterator

Copyright (c) 2002-2003 - Apache Software Foundation