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

org.neo4j.helpers.collection

## Class FilteringIterator<T>

- java.lang.Object
- - org.neo4j.helpers.collection.PrefetchingIterator<T>
  - - org.neo4j.helpers.collection.FilteringIterator<T>

- Type Parameters:
    `T` - the type of items in the iteration.
  All Implemented Interfaces:
    Iterator<T>

      public class FilteringIterator<T>
      extends PrefetchingIterator<T>

  An iterator which filters another iterator, only letting items with certain criterias pass through. All iteration/filtering is done lazily.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `FilteringIterator(Iterator<T> source, Predicate<T> predicate)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static <T> Iterator<T>` | `noDuplicates(Iterator<T> source)`
    `static <T> Iterator<T>` | `notNull(Iterator<T> source)`

    - ### Methods inherited from class org.neo4j.helpers.collection.PrefetchingIterator

      `hasNext, next, peek, remove`

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

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

- - ### Constructor Detail

    - #### FilteringIterator

          public FilteringIterator(Iterator<T> source,
                           Predicate<T> predicate)

  - ### Method Detail

    - #### notNull

          public static <T> Iterator<T> notNull(Iterator<T> source)

    - #### noDuplicates

          public static <T> Iterator<T> noDuplicates(Iterator<T> source)

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