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

java.lang.Object
  extended by it.unimi.dsi.fastutil.bytes.AbstractByteIterator
      extended by it.unimi.dsi.fastutil.bytes.ByteIterators.UnmodifiableIterator
All Implemented Interfaces:
ByteIterator, java.util.Iterator<java.lang.Byte>
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()
           
 java.lang.Byte 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
Returns:
the next element in the iteration.
See Also:
Iterator.next()

next

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

Specified by:
next in interface java.util.Iterator<java.lang.Byte>
Overrides:
next in class AbstractByteIterator