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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
i
protected final ObjectListIterator<K> i
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()
Copyright © 2011. All Rights Reserved.