it.unimi.dsi.fastutil.doubles
Class DoubleIterators.EmptyIterator
java.lang.Object
it.unimi.dsi.fastutil.doubles.AbstractDoubleIterator
it.unimi.dsi.fastutil.doubles.AbstractDoubleBidirectionalIterator
it.unimi.dsi.fastutil.doubles.AbstractDoubleListIterator
it.unimi.dsi.fastutil.doubles.DoubleIterators.EmptyIterator
- All Implemented Interfaces:
- BidirectionalIterator<Double>, DoubleBidirectionalIterator, DoubleIterator, DoubleListIterator, ObjectBidirectionalIterator<Double>, ObjectIterator<Double>, Serializable, Cloneable, Iterator<Double>, ListIterator<Double>
- Enclosing class:
- DoubleIterators
public static class DoubleIterators.EmptyIterator
- extends AbstractDoubleListIterator
- 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
DoubleIterators.EmptyIterator
protected DoubleIterators.EmptyIterator()
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface Iterator<Double>
- Specified by:
hasNext
in interface ListIterator<Double>
hasPrevious
public boolean hasPrevious()
- Description copied from interface:
BidirectionalIterator
- Returns whether there is a previous element.
- Specified by:
hasPrevious
in interface BidirectionalIterator<Double>
- Specified by:
hasPrevious
in interface ListIterator<Double>
- Returns:
- whether there is a previous element.
- See Also:
ListIterator.hasPrevious()
nextDouble
public double nextDouble()
- Description copied from class:
AbstractDoubleIterator
- Delegates to the corresponding generic method.
- Specified by:
nextDouble
in interface DoubleIterator
- Overrides:
nextDouble
in class AbstractDoubleIterator
- Returns:
- the next element in the iteration.
- See Also:
Iterator.next()
previousDouble
public double previousDouble()
- Description copied from class:
AbstractDoubleBidirectionalIterator
- Delegates to the corresponding generic method.
- Specified by:
previousDouble
in interface DoubleBidirectionalIterator
- Overrides:
previousDouble
in class AbstractDoubleBidirectionalIterator
- Returns:
- the previous element in the iteration.
- See Also:
ListIterator.previous()
nextIndex
public int nextIndex()
- Specified by:
nextIndex
in interface ListIterator<Double>
previousIndex
public int previousIndex()
- Specified by:
previousIndex
in interface ListIterator<Double>
skip
public int skip(int n)
- Description copied from class:
AbstractDoubleIterator
- This method just iterates the type-specific version of
AbstractDoubleIterator.next()
for at most
n
times, stopping if Iterator.hasNext()
becomes false.
- Specified by:
skip
in interface DoubleIterator
- Specified by:
skip
in interface ObjectIterator<Double>
- Overrides:
skip
in class AbstractDoubleIterator
- 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:
AbstractDoubleBidirectionalIterator
- This method just iterates the type-specific version of
AbstractDoubleBidirectionalIterator.previous()
for
at most n
times, stopping if BidirectionalIterator.hasPrevious()
becomes false.
- Specified by:
back
in interface DoubleBidirectionalIterator
- Specified by:
back
in interface ObjectBidirectionalIterator<Double>
- Overrides:
back
in class AbstractDoubleBidirectionalIterator
- 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.