Module org.hsqldb
Package org.hsqldb.lib

## Class FilteredIterator<E>

- java.lang.Object
- - org.hsqldb.lib.FilteredIterator<E>

- All Implemented Interfaces:
    `Iterator<E>`

      public class FilteredIterator<E>
      extends java.lang.Object
      implements Iterator<E>

  An iterator with an added filter.
  Since:
    2.5.1
  Author:
    Fred Toussi (fredt@users dot sourceforge.net)

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class | Description
    --- | --- | ---
    `static interface` | `FilteredIterator.Filter<E>` |

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `FilteredIterator​(Iterator<E> iterator, FilteredIterator.Filter<E> filter)` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `boolean` | `hasNext()` |
    `E` | `next()` |

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

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

    - ### Methods inherited from interface org.hsqldb.lib.Iterator

      `nextInt, nextLong, remove`

- - ### Constructor Detail

    - #### FilteredIterator

          public FilteredIterator​(Iterator<E> iterator,
                                  FilteredIterator.Filter<E> filter)

  - ### Method Detail

    - #### hasNext

          public boolean hasNext()

      Specified by:
        `hasNext` in interface `Iterator<E>`

    - #### next

          public E next()
                 throws java.util.NoSuchElementException

      Specified by:
        `next` in interface `Iterator<E>`
      Throws:
        `java.util.NoSuchElementException`