Visitor (Neo4j Community 2.1.0-M01 API)
Date: 2014-02-20

org.neo4j.helpers.collection

## Interface Visitor<E,FAILURE extends Exception>

- Type Parameters:
    `E` - the element type the visitor accepts.

      public interface Visitor<E,FAILURE extends Exception>

  A visitor to internalize iteration.
  Author:
    Tobias Lindaaker

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Interface and Description
    --- | ---
    `static class` | `Visitor.SafeGenerics`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `visit(E element)` Invoked for each element in a collection.

- - ### Method Detail

    - #### visit

          boolean visit(E element)
                        throws FAILURE extends Exception

      Invoked for each element in a collection. Return `true` to terminate the iteration, `false` to continue.
      Parameters:
        `element` - an element from the collection.
      Returns:
        `true` to terminate the iteration, `false` to continue.
      Throws:
        `FAILURE extends Exception`

Copyright © 2002–2014 The Neo4j Graph Database Project. All rights reserved.