it.unimi.dsi.fastutil.objects
Class ObjectIterators.UnmodifiableListIterator<K>
java.lang.Object
it.unimi.dsi.fastutil.objects.AbstractObjectIterator<K>
it.unimi.dsi.fastutil.objects.AbstractObjectBidirectionalIterator<K>
it.unimi.dsi.fastutil.objects.AbstractObjectListIterator<K>
it.unimi.dsi.fastutil.objects.ObjectIterators.UnmodifiableListIterator<K>
- All Implemented Interfaces:
- BidirectionalIterator<K>, ObjectBidirectionalIterator<K>, ObjectIterator<K>, ObjectListIterator<K>, Iterator<K>, ListIterator<K>
- Enclosing class:
- ObjectIterators
public static class ObjectIterators.UnmodifiableListIterator<K>
- extends AbstractObjectListIterator<K>
An unmodifiable wrapper class for list iterators.
ObjectIterators.UnmodifiableListIterator
public ObjectIterators.UnmodifiableListIterator(ObjectListIterator<K> i)
hasNext
public boolean hasNext()
hasPrevious
public boolean hasPrevious()
- Description copied from interface:
BidirectionalIterator
- Returns whether there is a previous element.
- Returns:
- whether there is a previous element.
- See Also:
ListIterator.hasPrevious()
next
public K next()
previous
public K previous()
- Description copied from interface:
BidirectionalIterator
- Returns the previous element from the collection.
- Returns:
- the previous element from the collection.
- See Also:
ListIterator.previous()
nextIndex
public int nextIndex()
previousIndex
public int previousIndex()