it.unimi.dsi.fastutil.floats
Class FloatIterators.ByteIteratorWrapper

java.lang.Object
  extended by it.unimi.dsi.fastutil.floats.FloatIterators.ByteIteratorWrapper
All Implemented Interfaces:
FloatIterator, Iterator<Float>
Enclosing class:
FloatIterators

protected static class FloatIterators.ByteIteratorWrapper
extends Object
implements FloatIterator

A wrapper promoting the results of a ByteIterator.


Constructor Summary
FloatIterators.ByteIteratorWrapper(ByteIterator iterator)
           
 
Method Summary
 boolean hasNext()
           
 Float next()
           
 float nextFloat()
          Returns the next element as a primitive type.
 void remove()
           
 int skip(int n)
          Skips the given number of elements.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FloatIterators.ByteIteratorWrapper

public FloatIterators.ByteIteratorWrapper(ByteIterator iterator)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator<Float>

next

public Float next()
Specified by:
next in interface Iterator<Float>

nextFloat

public float nextFloat()
Description copied from interface: FloatIterator
Returns the next element as a primitive type.

Specified by:
nextFloat in interface FloatIterator
Returns:
the next element in the iteration.
See Also:
Iterator.next()

remove

public void remove()
Specified by:
remove in interface Iterator<Float>

skip

public int skip(int n)
Description copied from interface: FloatIterator
Skips the given number of elements.

The effect of this call is exactly the same as that of calling Iterator.next() for n times (possibly stopping if Iterator.hasNext() becomes false).

Specified by:
skip in interface FloatIterator
Parameters:
n - the number of elements to skip.
Returns:
the number of elements actually skipped.
See Also:
Iterator.next()


Copyright © 2011. All Rights Reserved.