Neo4j Community

org.neo4j.helpers.collection
Interface Visitor<E>

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

public interface Visitor<E>

A visitor to internalize iteration.

Author:
Tobias Lindaaker

Method Summary
 boolean visit(E element)
          Invoked for each element in a collection.
 

Method Detail

visit

boolean visit(E element)
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.

Neo4j Community

Copyright © 2002-2012 The Neo4j Graph Database Project. All Rights Reserved.