it.unimi.dsi.fastutil.booleans
Class BooleanIterators.UnmodifiableListIterator
java.lang.Object
it.unimi.dsi.fastutil.booleans.AbstractBooleanIterator
it.unimi.dsi.fastutil.booleans.AbstractBooleanBidirectionalIterator
it.unimi.dsi.fastutil.booleans.AbstractBooleanListIterator
it.unimi.dsi.fastutil.booleans.BooleanIterators.UnmodifiableListIterator
- All Implemented Interfaces:
- BidirectionalIterator, BooleanBidirectionalIterator, BooleanIterator, BooleanListIterator, Iterator, ListIterator
- Enclosing class:
- BooleanIterators
- public static class BooleanIterators.UnmodifiableListIterator
- extends AbstractBooleanListIterator
An unmodifiable wrapper class for list iterators.
BooleanIterators.UnmodifiableListIterator
public BooleanIterators.UnmodifiableListIterator(BooleanListIterator i)
hasNext
public boolean hasNext()
hasPrevious
public boolean hasPrevious()
- Description copied from interface:
BidirectionalIterator
- Returns whether there is a previous element.
nextBoolean
public boolean nextBoolean()
- Description copied from interface:
BooleanIterator
- Returns the next element as a primitive type.
- Specified by:
nextBoolean
in interface BooleanIterator
- Overrides:
nextBoolean
in class AbstractBooleanIterator
previousBoolean
public boolean previousBoolean()
- Description copied from interface:
BooleanBidirectionalIterator
- Returns the previous element as a primitive type.
- Specified by:
previousBoolean
in interface BooleanBidirectionalIterator
- Overrides:
previousBoolean
in class AbstractBooleanBidirectionalIterator
nextIndex
public int nextIndex()
previousIndex
public int previousIndex()
next
public Object next()
- Description copied from class:
AbstractBooleanIterator
- Delegates to the corresponding type-specific method.
- Specified by:
next
in interface ListIterator
- Overrides:
next
in class AbstractBooleanIterator
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 AbstractBooleanBidirectionalIterator