Interface FilterIterator.Filter<E>

Enclosing class:
FilterIterator<E>

public static interface FilterIterator.Filter<E>
Used to tests whether or not an element fulfills certain criteria, and hence should be accepted by the FilterIterator instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    accept(E pElement)
    Tests whether or not the element fulfills certain criteria, and hence should be accepted.
  • Method Details

    • accept

      boolean accept(E pElement)
      Tests whether or not the element fulfills certain criteria, and hence should be accepted.
      Parameters:
      pElement - the element to test
      Returns:
      true if the object is accepted, otherwise false