Arrays.Iterator (Bouncy Castle Library 1.85 API Specification)
Date: 2026-07-12

org.bouncycastle.util

## Class Arrays.Iterator<T>

- java.lang.Object
- - org.bouncycastle.util.Arrays.Iterator<T>

- All Implemented Interfaces:
    java.util.Iterator<T>
  Enclosing class:
    Arrays

      public static class Arrays.Iterator<T>
      extends java.lang.Object
      implements java.util.Iterator<T>

  Iterator backed by a specific array.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Iterator(T[] dataArray)` Base constructor.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `hasNext()`
    `T` | `next()`
    `void` | `remove()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

    - ### Methods inherited from interface java.util.Iterator

      `forEachRemaining`

- - ### 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()

      Specified by:
        `hasNext` in interface `java.util.Iterator<T>`

    - #### next

          public T next()

      Specified by:
        `next` in interface `java.util.Iterator<T>`

    - #### remove

          public void remove()

      Specified by:
        `remove` in interface `java.util.Iterator<T>`