org.apache.commons.collections.primitives.adapters
public class ByteIteratorIterator extends java.lang.Object implements java.util.Iterator
ByteIterator
to the
Iterator
interface.
This implementation delegates most methods
to the provided ByteIterator
implementation in the "obvious" way.Modifier and Type | Field and Description |
---|---|
private ByteIterator |
_iterator |
Constructor and Description |
---|
ByteIteratorIterator(ByteIterator iterator)
Creates an
Iterator wrapping
the specified ByteIterator . |
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext() |
java.lang.Object |
next() |
void |
remove() |
static java.util.Iterator |
wrap(ByteIterator iterator)
Create an
Iterator wrapping
the specified ByteIterator . |
private ByteIterator _iterator
public ByteIteratorIterator(ByteIterator iterator)
Iterator
wrapping
the specified ByteIterator
.public static java.util.Iterator wrap(ByteIterator iterator)
Iterator
wrapping
the specified ByteIterator
. When
the given iterator is null
,
returns null
.iterator
- the (possibly null
)
ByteIterator
to wrapIterator
wrapping the given
iterator, or null
when iterator is
null
.public boolean hasNext()
hasNext
in interface java.util.Iterator
public java.lang.Object next()
next
in interface java.util.Iterator
public void remove()
remove
in interface java.util.Iterator
Copyright (c) 2002-2003 - Apache Software Foundation