Package: groovy.util

## [Java] Class ObservableList.ObservableIterator

- groovy.util.ObservableList.ObservableIterator

- All Implemented Interfaces and Traits:
    Iterator

      protected class ObservableList.ObservableIterator
      extends Object
      implements Iterator

  Iterator wrapper that reports removals as observable list events.

- - ### Field Summary

    Fields
    Modifiers | Name | Description
    --- | --- | ---
    `protected int` | `cursor` | Current list index for iterator-driven updates.

  - ### Constructor Summary

    Constructors
    Constructor and description
    `ObservableIterator(Iterator iterDelegate)` Creates an observable iterator around the supplied delegate.

  - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `public Iterator` | `getDelegate()` Returns the wrapped iterator.
    `` | `public boolean` | `hasNext()` {@inheritDoc}
    `` | `public Object` | `next()` {@inheritDoc}
    `` | `public void` | `remove()` {@inheritDoc}

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class Object` | `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### protected int cursor

      Current list index for iterator-driven updates.

  - ### Constructor Detail

    - #### public ObservableIterator(Iterator iterDelegate)

      Creates an observable iterator around the supplied delegate.

      Parameters:
        `iterDelegate` - the backing iterator

  - ### Method Detail

    - #### public Iterator getDelegate()

      Returns the wrapped iterator.

      Returns:
        the backing iterator

    - #### public boolean hasNext()

      {@inheritDoc}

    - #### public Object next()

      {@inheritDoc}

    - #### public void remove()

      {@inheritDoc}