it.unimi.dsi.fastutil.bytes
Class ByteIterators.UnmodifiableIterator

java.lang.Object
  extended byit.unimi.dsi.fastutil.bytes.AbstractByteIterator
      extended byit.unimi.dsi.fastutil.bytes.ByteIterators.UnmodifiableIterator
All Implemented Interfaces:
ByteIterator, Iterator
Enclosing class:
ByteIterators

public static class ByteIterators.UnmodifiableIterator
extends AbstractByteIterator

An unmodifiable wrapper class for iterators.


Constructor Summary
ByteIterators.UnmodifiableIterator(ByteIterator i)
           
 
Method Summary
 boolean hasNext()
           
 Object next()
          Delegates to the corresponding type-specific method.
 byte nextByte()
          Delegates to the corresponding generic method.
 
Methods inherited from class it.unimi.dsi.fastutil.bytes.AbstractByteIterator
remove, skip
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByteIterators.UnmodifiableIterator

public ByteIterators.UnmodifiableIterator(ByteIterator i)
Method Detail

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

next

public Object next()
Description copied from class: AbstractByteIterator
Delegates to the corresponding type-specific method.

Specified by:
next in interface Iterator
Overrides:
next in class AbstractByteIterator