org.joda.primitives.iterator
Interface PrimitiveIterator<E>

All Superinterfaces:
Iterator<E>
All Known Subinterfaces:
BooleanIterator, BooleanListIterator, ByteIterator, ByteListIterator, CharIterator, CharListIterator, DoubleIterator, DoubleListIterator, FloatIterator, FloatListIterator, IntIterator, IntListIterator, LongIterator, LongListIterator, PrimitiveListIterator<E>, ShortIterator, ShortListIterator
All Known Implementing Classes:
AbstractBooleanList.PListIterator, AbstractByteList.PListIterator, AbstractCharList.PListIterator, AbstractDoubleList.PListIterator, AbstractFloatList.PListIterator, AbstractIntList.PListIterator, AbstractLongList.PListIterator, AbstractShortList.PListIterator, ArrayBooleanCollection.PIterator, ArrayBooleanIterator, ArrayBooleanListIterator, ArrayByteCollection.PIterator, ArrayByteIterator, ArrayByteListIterator, ArrayCharCollection.PIterator, ArrayCharIterator, ArrayCharListIterator, ArrayDoubleCollection.PIterator, ArrayDoubleIterator, ArrayDoubleListIterator, ArrayFloatCollection.PIterator, ArrayFloatIterator, ArrayFloatListIterator, ArrayIntCollection.PIterator, ArrayIntIterator, ArrayIntListIterator, ArrayLongCollection.PIterator, ArrayLongIterator, ArrayLongListIterator, ArrayShortCollection.PIterator, ArrayShortIterator, ArrayShortListIterator

public interface PrimitiveIterator<E>
extends Iterator<E>

Base interface for all primitive iterator interfaces.

Since:
1.0
Author:
Stephen Colebourne

Method Summary
 boolean isModifiable()
          Checks whether the iterator can currently be modified.
 boolean isResettable()
          Checks whether the iterator can be reset.
 void reset()
          Resets the iterator back to its initial state (optional operation).
 
Methods inherited from interface java.util.Iterator
hasNext, next, remove
 

Method Detail

isModifiable

boolean isModifiable()
Checks whether the iterator can currently be modified.

Returns:
true if the modification methods of the iterator can be used

isResettable

boolean isResettable()
Checks whether the iterator can be reset.

Returns:
true if the object can be reset

reset

void reset()
Resets the iterator back to its initial state (optional operation).

Throws:
UnsupportedOperationException - if the iterator cannot be reset


Copyright © 2005-2010 Joda.org. All Rights Reserved.