it.unimi.dsi.fastutil.floats
Class FloatIterators.EmptyIterator
java.lang.Object
it.unimi.dsi.fastutil.floats.AbstractFloatIterator
it.unimi.dsi.fastutil.floats.AbstractFloatBidirectionalIterator
it.unimi.dsi.fastutil.floats.AbstractFloatListIterator
it.unimi.dsi.fastutil.floats.FloatIterators.EmptyIterator
- All Implemented Interfaces:
- BidirectionalIterator<Float>, FloatBidirectionalIterator, FloatIterator, FloatListIterator, ObjectBidirectionalIterator<Float>, ObjectIterator<Float>, Serializable, Cloneable, Iterator<Float>, ListIterator<Float>
- Enclosing class:
- FloatIterators
public static class FloatIterators.EmptyIterator
- extends AbstractFloatListIterator
- implements Serializable, Cloneable
A class returning no elements and a type-specific iterator interface.
This class may be useful to implement your own in case you subclass
a type-specific iterator.
- See Also:
- Serialized Form
serialVersionUID
public static final long serialVersionUID
- See Also:
- Constant Field Values
FloatIterators.EmptyIterator
protected FloatIterators.EmptyIterator()
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface Iterator<Float>
- Specified by:
hasNext
in interface ListIterator<Float>
hasPrevious
public boolean hasPrevious()
- Description copied from interface:
BidirectionalIterator
- Returns whether there is a previous element.
- Specified by:
hasPrevious
in interface BidirectionalIterator<Float>
- Specified by:
hasPrevious
in interface ListIterator<Float>
- Returns:
- whether there is a previous element.
- See Also:
ListIterator.hasPrevious()
nextFloat
public float nextFloat()
- Description copied from class:
AbstractFloatIterator
- Delegates to the corresponding generic method.
- Specified by:
nextFloat
in interface FloatIterator
- Overrides:
nextFloat
in class AbstractFloatIterator
- Returns:
- the next element in the iteration.
- See Also:
Iterator.next()
previousFloat
public float previousFloat()
- Description copied from class:
AbstractFloatBidirectionalIterator
- Delegates to the corresponding generic method.
- Specified by:
previousFloat
in interface FloatBidirectionalIterator
- Overrides:
previousFloat
in class AbstractFloatBidirectionalIterator
- Returns:
- the previous element in the iteration.
- See Also:
ListIterator.previous()
nextIndex
public int nextIndex()
- Specified by:
nextIndex
in interface ListIterator<Float>
previousIndex
public int previousIndex()
- Specified by:
previousIndex
in interface ListIterator<Float>
skip
public int skip(int n)
- Description copied from class:
AbstractFloatIterator
- This method just iterates the type-specific version of
AbstractFloatIterator.next()
for at most
n
times, stopping if Iterator.hasNext()
becomes false.
- Specified by:
skip
in interface FloatIterator
- Specified by:
skip
in interface ObjectIterator<Float>
- Overrides:
skip
in class AbstractFloatIterator
- Parameters:
n
- the number of elements to skip.
- Returns:
- the number of elements actually skipped.
- See Also:
Iterator.next()
back
public int back(int n)
- Description copied from class:
AbstractFloatBidirectionalIterator
- This method just iterates the type-specific version of
AbstractFloatBidirectionalIterator.previous()
for
at most n
times, stopping if BidirectionalIterator.hasPrevious()
becomes false.
- Specified by:
back
in interface FloatBidirectionalIterator
- Specified by:
back
in interface ObjectBidirectionalIterator<Float>
- Overrides:
back
in class AbstractFloatBidirectionalIterator
- Parameters:
n
- the number of elements to skip back.
- Returns:
- the number of elements actually skipped.
- See Also:
Iterator.next()
clone
public Object clone()
- Overrides:
clone
in class Object
Copyright © 2011. All Rights Reserved.