|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.collections.primitives.ByteCollections
public final class ByteCollections
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.
Field Summary | |
---|---|
static ByteIterator |
EMPTY_BYTE_ITERATOR
An unmodifiable, empty ByteIterator |
static ByteList |
EMPTY_BYTE_LIST
An unmodifiable, empty ByteList |
static ByteListIterator |
EMPTY_BYTE_LIST_ITERATOR
An unmodifiable, empty ByteListIterator |
Constructor Summary | |
---|---|
ByteCollections()
|
Method Summary | |
---|---|
static ByteIterator |
getEmptyByteIterator()
Returns an unmodifiable, empty ByteIterator |
static ByteList |
getEmptyByteList()
Returns an unmodifiable, empty ByteList. |
static ByteListIterator |
getEmptyByteListIterator()
Returns an unmodifiable, empty ByteListIterator |
static ByteIterator |
singletonByteIterator(byte value)
Returns an unmodifiable ByteIterator containing only the specified element. |
static ByteList |
singletonByteList(byte value)
Returns an unmodifiable ByteList containing only the specified element. |
static ByteListIterator |
singletonByteListIterator(byte value)
Returns an unmodifiable ByteListIterator containing only the specified element. |
static ByteIterator |
unmodifiableByteIterator(ByteIterator iter)
Returns an unmodifiable version of the given non-null ByteIterator. |
static ByteList |
unmodifiableByteList(ByteList list)
Returns an unmodifiable version of the given non-null ByteList. |
static ByteListIterator |
unmodifiableByteListIterator(ByteListIterator iter)
Returns an unmodifiable version of the given non-null ByteListIterator. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final ByteList EMPTY_BYTE_LIST
getEmptyByteList()
public static final ByteIterator EMPTY_BYTE_ITERATOR
getEmptyByteIterator()
public static final ByteListIterator EMPTY_BYTE_LIST_ITERATOR
getEmptyByteListIterator()
Constructor Detail |
---|
public ByteCollections()
Method Detail |
---|
public static ByteList singletonByteList(byte value)
value
- the single value
public static ByteIterator singletonByteIterator(byte value)
value
- the single value
public static ByteListIterator singletonByteListIterator(byte value)
value
- the single value
public static ByteList unmodifiableByteList(ByteList list) throws java.lang.NullPointerException
list
- the non-null ByteList to wrap in an unmodifiable decorator
NullPoByteerException
- if the given ByteList is null
java.lang.NullPointerException
UnmodifiableByteList.wrap(org.apache.commons.collections.primitives.ByteList)
public static ByteIterator unmodifiableByteIterator(ByteIterator iter)
iter
- the non-null ByteIterator to wrap in an unmodifiable decorator
NullPoByteerException
- if the given ByteIterator is nullUnmodifiableByteIterator.wrap(org.apache.commons.collections.primitives.ByteIterator)
public static ByteListIterator unmodifiableByteListIterator(ByteListIterator iter)
iter
- the non-null ByteListIterator to wrap in an unmodifiable decorator
NullPoByteerException
- if the given ByteListIterator is nullUnmodifiableByteListIterator.wrap(org.apache.commons.collections.primitives.ByteListIterator)
public static ByteList getEmptyByteList()
EMPTY_BYTE_LIST
public static ByteIterator getEmptyByteIterator()
EMPTY_BYTE_ITERATOR
public static ByteListIterator getEmptyByteListIterator()
EMPTY_BYTE_LIST_ITERATOR
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |