it.unimi.dsi.fastutil.longs
Class LongIterators.UnmodifiableListIterator
java.lang.Object
it.unimi.dsi.fastutil.longs.AbstractLongIterator
it.unimi.dsi.fastutil.longs.AbstractLongBidirectionalIterator
it.unimi.dsi.fastutil.longs.AbstractLongListIterator
it.unimi.dsi.fastutil.longs.LongIterators.UnmodifiableListIterator
- All Implemented Interfaces:
- BidirectionalIterator, Iterator, ListIterator, LongBidirectionalIterator, LongIterator, LongListIterator
- Enclosing class:
- LongIterators
- public static class LongIterators.UnmodifiableListIterator
- extends AbstractLongListIterator
An unmodifiable wrapper class for list iterators.
LongIterators.UnmodifiableListIterator
public LongIterators.UnmodifiableListIterator(LongListIterator i)
hasNext
public boolean hasNext()
hasPrevious
public boolean hasPrevious()
- Description copied from interface:
BidirectionalIterator
- Returns whether there is a previous element.
nextLong
public long nextLong()
- Description copied from interface:
LongIterator
- Returns the next element as a primitive type.
- Specified by:
nextLong
in interface LongIterator
- Overrides:
nextLong
in class AbstractLongIterator
previousLong
public long previousLong()
- Description copied from interface:
LongBidirectionalIterator
- Returns the previous element as a primitive type.
- Specified by:
previousLong
in interface LongBidirectionalIterator
- Overrides:
previousLong
in class AbstractLongBidirectionalIterator
nextIndex
public int nextIndex()
previousIndex
public int previousIndex()
next
public Object next()
- Description copied from class:
AbstractLongIterator
- Delegates to the corresponding type-specific method.
- Specified by:
next
in interface ListIterator
- Overrides:
next
in class AbstractLongIterator
previous
public Object previous()
- Description copied from interface:
BidirectionalIterator
- Returns the previous element from the collection.
- Specified by:
previous
in interface ListIterator
- Overrides:
previous
in class AbstractLongBidirectionalIterator