org.apache.commons.collections.primitives

Class IntCollections

public final class IntCollections extends Object

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

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

Version: $Revision: 1.2 $ $Date: 2003/10/27 23:21:14 $

Author: Rodney Waldhoff

Field Summary
static IntIteratorEMPTY_INT_ITERATOR
An unmodifiable, empty IntIterator
static IntListEMPTY_INT_LIST
An unmodifiable, empty IntList
static IntListIteratorEMPTY_INT_LIST_ITERATOR
An unmodifiable, empty IntListIterator
Method Summary
static IntIteratorgetEmptyIntIterator()
Returns an unmodifiable, empty IntIterator
static IntListgetEmptyIntList()
Returns an unmodifiable, empty IntList.
static IntListIteratorgetEmptyIntListIterator()
Returns an unmodifiable, empty IntListIterator
static IntIteratorsingletonIntIterator(int value)
Returns an unmodifiable IntIterator containing only the specified element.
static IntListsingletonIntList(int value)
Returns an unmodifiable IntList containing only the specified element.
static IntListIteratorsingletonIntListIterator(int value)
Returns an unmodifiable IntListIterator containing only the specified element.
static IntIteratorunmodifiableIntIterator(IntIterator iter)
Returns an unmodifiable version of the given non-null IntIterator.
static IntListunmodifiableIntList(IntList list)
Returns an unmodifiable version of the given non-null IntList.
static IntListIteratorunmodifiableIntListIterator(IntListIterator iter)
Returns an unmodifiable version of the given non-null IntListIterator.

Field Detail

EMPTY_INT_ITERATOR

public static final IntIterator EMPTY_INT_ITERATOR
An unmodifiable, empty IntIterator

See Also: IntCollections

EMPTY_INT_LIST

public static final IntList EMPTY_INT_LIST
An unmodifiable, empty IntList

See Also: IntCollections

EMPTY_INT_LIST_ITERATOR

public static final IntListIterator EMPTY_INT_LIST_ITERATOR
An unmodifiable, empty IntListIterator

See Also: IntCollections

Method Detail

getEmptyIntIterator

public static IntIterator getEmptyIntIterator()
Returns an unmodifiable, empty IntIterator

Returns: an unmodifiable, empty IntIterator.

See Also: EMPTY_INT_ITERATOR

getEmptyIntList

public static IntList getEmptyIntList()
Returns an unmodifiable, empty IntList.

Returns: an unmodifiable, empty IntList.

See Also: EMPTY_INT_LIST

getEmptyIntListIterator

public static IntListIterator getEmptyIntListIterator()
Returns an unmodifiable, empty IntListIterator

Returns: an unmodifiable, empty IntListIterator.

See Also: EMPTY_INT_LIST_ITERATOR

singletonIntIterator

public static IntIterator singletonIntIterator(int value)
Returns an unmodifiable IntIterator containing only the specified element.

Parameters: value the single value

Returns: an unmodifiable IntIterator containing only the specified element.

singletonIntList

public static IntList singletonIntList(int value)
Returns an unmodifiable IntList containing only the specified element.

Parameters: value the single value

Returns: an unmodifiable IntList containing only the specified element.

singletonIntListIterator

public static IntListIterator singletonIntListIterator(int value)
Returns an unmodifiable IntListIterator containing only the specified element.

Parameters: value the single value

Returns: an unmodifiable IntListIterator containing only the specified element.

unmodifiableIntIterator

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

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

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

Throws: NullPointerException if the given IntIterator is null

See Also: UnmodifiableIntIterator

unmodifiableIntList

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

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

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

Throws: NullPointerException if the given IntList is null

See Also: UnmodifiableIntList

unmodifiableIntListIterator

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

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

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

Throws: NullPointerException if the given IntListIterator is null

See Also: UnmodifiableIntListIterator

Copyright (c) 2002-2003 - Apache Software Foundation