Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.neo4j.graphdb.traversal
Interface UniquenessFilter

    public interface UniquenessFilter

Method Summary
`boolean` | `check(TraversalBranch branch, boolean remember)` Checks whether or not `branch` is unique, and hence can be visited in this traversal.
`boolean` | `checkFirst(TraversalBranch branch)` The check whether or not to expand the first branch is a separate method because it may contain checks which would be unnecessary for all other checks.

Method Detail

### checkFirst

    boolean checkFirst(TraversalBranch branch)

  The check whether or not to expand the first branch is a separate method because it may contain checks which would be unnecessary for all other checks. So it's purely an optimization.

  Parameters:
    `branch` - the first branch to check, i.e. the branch representing the start node in the traversal.
  Returns:
    whether or not `branch` is unique, and hence can be visited in this traversal.

### check

    boolean check(TraversalBranch branch,
                  boolean remember)

  Checks whether or not `branch` is unique, and hence can be visited in this traversal.

  Parameters:
    `branch` - the `TraversalBranch` to check for uniqueness.
    `remember` - whether or not to remember `branch`. If `remember` is `false` then no state in this filter must be changed.
  Returns:
    whether or not `branch` is unique, and hence can be visited in this traversal.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2011 The Neo4j Graph Database Project. All Rights Reserved.