it.unimi.dsi.fastutil.bytes
Class ByteIterators.UnmodifiableIterator
java.lang.Object
it.unimi.dsi.fastutil.bytes.AbstractByteIterator
it.unimi.dsi.fastutil.bytes.ByteIterators.UnmodifiableIterator
- All Implemented Interfaces:
- ByteIterator, Iterator<Byte>
- Enclosing class:
- ByteIterators
public static class ByteIterators.UnmodifiableIterator
- extends AbstractByteIterator
An unmodifiable wrapper class for iterators.
|
Method Summary |
boolean |
hasNext()
|
Byte |
next()
Delegates to the corresponding type-specific method. |
byte |
nextByte()
Delegates to the corresponding generic method. |
ByteIterators.UnmodifiableIterator
public ByteIterators.UnmodifiableIterator(ByteIterator i)
hasNext
public boolean hasNext()
nextByte
public byte nextByte()
- Description copied from class:
AbstractByteIterator
- Delegates to the corresponding generic method.
- Specified by:
nextByte in interface ByteIterator- Overrides:
nextByte in class AbstractByteIterator
- Returns:
- the next element in the iteration.
- See Also:
Iterator.next()
next
public Byte next()
- Description copied from class:
AbstractByteIterator
- Delegates to the corresponding type-specific method.
- Specified by:
next in interface Iterator<Byte>- Overrides:
next in class AbstractByteIterator