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

org.neo4j.helpers.collection

## Class FilteringIterable<T>

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

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

      public class FilteringIterable<T>
      extends Object
      implements Iterable<T>

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

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `FilteringIterable(Iterable<T> source, Predicate<T> predicate)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `Iterator<T>` | `iterator()`
    `static <T> Iterable<T>` | `noDuplicates(Iterable<T> source)`
    `static <T> Predicate<T>` | `noDuplicatesPredicate()`
    `static <T> Iterable<T>` | `notNull(Iterable<T> source)`
    `static <T> Predicate<T>` | `notNullPredicate()`

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

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

- - ### Constructor Detail

    - #### FilteringIterable

          public FilteringIterable(Iterable<T> source,
                           Predicate<T> predicate)

  - ### Method Detail

    - #### iterator

          public Iterator<T> iterator()

      Specified by:
        `iterator` in interface `Iterable<T>`

    - #### notNull

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

    - #### noDuplicates

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

    - #### noDuplicatesPredicate

          public static <T> Predicate<T> noDuplicatesPredicate()

    - #### notNullPredicate

          public static <T> Predicate<T> notNullPredicate()

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