org.modeshape.jcr.cache.document

## Interface NodeCacheIterator.NodeFilter

- All Known Implementing Classes:
    QuerySources.CompositeNodeFilter
  Enclosing class:
    NodeCacheIterator

      public static interface NodeCacheIterator.NodeFilter

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `includeNode(CachedNode node, NodeCache cache)` Determine if the supplied node is to be included in the iterator.

- - ### Method Detail

    - #### includeNode

          boolean includeNode(CachedNode node,
                            NodeCache cache)

      Determine if the supplied node is to be included in the iterator. If this method returns false, then the node and all descendants will be excluded from the iterator. By default, this method always returns true.
      Parameters:
        `node` - the node; never null
        `cache` - the node cache; never null
      Returns:
        true if the node is to be included; or false otherwise

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