Package org.eclipse.rdf4j.sail.memory.model

## Class WeakObjectRegistry.AutoCloseableIterator<E>

- java.lang.Object
- - org.eclipse.rdf4j.sail.memory.model.WeakObjectRegistry.AutoCloseableIterator<E>

- All Implemented Interfaces:
    `AutoCloseable`, `Iterator<E>`
  Enclosing class:
    WeakObjectRegistry<E>

      public static class WeakObjectRegistry.AutoCloseableIterator<E>
      extends Object
      implements Iterator<E>, AutoCloseable

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `AutoCloseableIterator​(Map<E,​WeakReference<E>>[] objectMap, org.eclipse.rdf4j.sail.memory.model.WeakObjectRegistry.AdderBasedReadWriteLock[] locks)` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | `close()` |
    `boolean` | `hasNext()` |
    `void` | `init()` |
    `E` | `next()` |

    - ### 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, remove`

- - ### Constructor Detail

    - #### AutoCloseableIterator

          public AutoCloseableIterator​(Map<E,​WeakReference<E>>[] objectMap,
                                       org.eclipse.rdf4j.sail.memory.model.WeakObjectRegistry.AdderBasedReadWriteLock[] locks)

  - ### Method Detail

    - #### init

          public void init()

    - #### hasNext

          public boolean hasNext()

      Specified by:
        `hasNext` in interface `Iterator<E>`

    - #### next

          public E next()

      Specified by:
        `next` in interface `Iterator<E>`

    - #### close

          public void close()

      Specified by:
        `close` in interface `AutoCloseable`