Class FilterIterator<E>

java.lang.Object
ch.tocco.nice2.dbrefactoring.impl.modulesupport.FilterIterator<E>
All Implemented Interfaces:
Iterator<E>
Direct Known Subclasses:
ModuleIterator

public class FilterIterator<E> extends Object implements Iterator<E>
  • Field Details

  • Constructor Details

    • FilterIterator

      public FilterIterator(Iterator<E> delegate)
  • Method Details

    • create

      public static <E> FilterIterator<E> create(Iterator<E> delegate)
    • getPredicate

      protected Predicate<E> getPredicate()
    • addFilter

      public void addFilter(Predicate<E> filter)
    • isEmpty

      public boolean isEmpty()
    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator<E>
    • next

      public E next()
      Specified by:
      next in interface Iterator<E>
    • remove

      public void remove()
      Specified by:
      remove in interface Iterator<E>