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, Iterator<Byte>
Enclosing class:
ByteIterators

public static class ByteIterators.UnmodifiableIterator
extends AbstractByteIterator

An unmodifiable wrapper class for iterators.


Field Summary
protected  ByteIterator i
           
 
Constructor Summary
ByteIterators.UnmodifiableIterator(ByteIterator i)
           
 
Method Summary
 boolean hasNext()
           
 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

i

protected final ByteIterator i
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 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


Copyright © 2011. All Rights Reserved.