Package org.bouncycastle.util
Class Arrays.Iterator<T>
- java.lang.Object
-
- org.bouncycastle.util.Arrays.Iterator<T>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()Returns true if there is at least one more element, false otherwise.Tnext()Returns the next object and advances the iterator.voidremove()Removes the last object returned bynextfrom the collection.
-
-
-
Constructor Detail
-
Iterator
public Iterator(T[] dataArray)
Base constructor.Note: the array is not cloned, changes to it will affect the values returned by next().
- Parameters:
dataArray- array backing the iterator.
-
-
Method Detail
-
hasNext
public boolean hasNext()
Description copied from interface:IteratorReturns true if there is at least one more element, false otherwise.- Specified by:
hasNextin interfaceIterator<T>- See Also:
Iterator.next()
-
next
public T next()
Description copied from interface:IteratorReturns the next object and advances the iterator.- Specified by:
nextin interfaceIterator<T>- Returns:
- the next object.
- See Also:
Iterator.hasNext()
-
-