org.apache.commons.collections.primitives

Class ByteCollections

public final class ByteCollections extends Object

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

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

Version: $Revision: 1.1 $ $Date: 2003/10/29 18:33:11 $

Author: Rodney Waldhoff

Field Summary
static ByteIteratorEMPTY_BYTE_ITERATOR
An unmodifiable, empty ByteIterator
static ByteListEMPTY_BYTE_LIST
An unmodifiable, empty ByteList
static ByteListIteratorEMPTY_BYTE_LIST_ITERATOR
An unmodifiable, empty ByteListIterator
Method Summary
static ByteIteratorgetEmptyByteIterator()
Returns an unmodifiable, empty ByteIterator
static ByteListgetEmptyByteList()
Returns an unmodifiable, empty ByteList.
static ByteListIteratorgetEmptyByteListIterator()
Returns an unmodifiable, empty ByteListIterator
static ByteIteratorsingletonByteIterator(byte value)
Returns an unmodifiable ByteIterator containing only the specified element.
static ByteListsingletonByteList(byte value)
Returns an unmodifiable ByteList containing only the specified element.
static ByteListIteratorsingletonByteListIterator(byte value)
Returns an unmodifiable ByteListIterator containing only the specified element.
static ByteIteratorunmodifiableByteIterator(ByteIterator iter)
Returns an unmodifiable version of the given non-null ByteIterator.
static ByteListunmodifiableByteList(ByteList list)
Returns an unmodifiable version of the given non-null ByteList.
static ByteListIteratorunmodifiableByteListIterator(ByteListIterator iter)
Returns an unmodifiable version of the given non-null ByteListIterator.

Field Detail

EMPTY_BYTE_ITERATOR

public static final ByteIterator EMPTY_BYTE_ITERATOR
An unmodifiable, empty ByteIterator

See Also: ByteCollections

EMPTY_BYTE_LIST

public static final ByteList EMPTY_BYTE_LIST
An unmodifiable, empty ByteList

See Also: ByteCollections

EMPTY_BYTE_LIST_ITERATOR

public static final ByteListIterator EMPTY_BYTE_LIST_ITERATOR
An unmodifiable, empty ByteListIterator

See Also: ByteCollections

Method Detail

getEmptyByteIterator

public static ByteIterator getEmptyByteIterator()
Returns an unmodifiable, empty ByteIterator

Returns: an unmodifiable, empty ByteIterator.

See Also: EMPTY_BYTE_ITERATOR

getEmptyByteList

public static ByteList getEmptyByteList()
Returns an unmodifiable, empty ByteList.

Returns: an unmodifiable, empty ByteList.

See Also: EMPTY_BYTE_LIST

getEmptyByteListIterator

public static ByteListIterator getEmptyByteListIterator()
Returns an unmodifiable, empty ByteListIterator

Returns: an unmodifiable, empty ByteListIterator.

See Also: EMPTY_BYTE_LIST_ITERATOR

singletonByteIterator

public static ByteIterator singletonByteIterator(byte value)
Returns an unmodifiable ByteIterator containing only the specified element.

Parameters: value the single value

Returns: an unmodifiable ByteIterator containing only the specified element.

singletonByteList

public static ByteList singletonByteList(byte value)
Returns an unmodifiable ByteList containing only the specified element.

Parameters: value the single value

Returns: an unmodifiable ByteList containing only the specified element.

singletonByteListIterator

public static ByteListIterator singletonByteListIterator(byte value)
Returns an unmodifiable ByteListIterator containing only the specified element.

Parameters: value the single value

Returns: an unmodifiable ByteListIterator containing only the specified element.

unmodifiableByteIterator

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

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

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

Throws: NullPoByteerException if the given ByteIterator is null

See Also: UnmodifiableByteIterator

unmodifiableByteList

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

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

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

Throws: NullPoByteerException if the given ByteList is null

See Also: UnmodifiableByteList

unmodifiableByteListIterator

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

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

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

Throws: NullPoByteerException if the given ByteListIterator is null

See Also: UnmodifiableByteListIterator

Copyright (c) 2002-2003 - Apache Software Foundation