org.modeshape.jcr.cache.document

## Class NodeCacheIterator

- java.lang.Object
- - org.modeshape.jcr.cache.document.NodeCacheIterator

- All Implemented Interfaces:
    Iterator<NodeKey>

      public final class NodeCacheIterator
      extends Object
      implements Iterator<NodeKey>

  An iterator that returns all of the keys for the nodes in the cache that are below the specified starting node.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `NodeCacheIterator(NodeCache cache, NodeKey startingNode)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `hasNext()`
    `NodeKey` | `next()`
    `protected void` | `nextNode()`
    `void` | `remove()`

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

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

- - ### Constructor Detail

    - #### NodeCacheIterator

          public NodeCacheIterator(NodeCache cache,
                           NodeKey startingNode)

  - ### Method Detail

    - #### hasNext

          public boolean hasNext()

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

    - #### next

          public NodeKey next()

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

    - #### nextNode

          protected void nextNode()

    - #### remove

          public void remove()

      Specified by:
        `remove` in interface `Iterator<NodeKey>`

Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.