Interface Filter<E>

Type Parameters:
E - the type of the element to filter
All Known Implementing Classes:
ConstantFilter, MatchFilter, TypeFilter

public interface Filter<E>
Predicate deciding whether an element should be kept during filtering.
Author:
Florent Tornil
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    filter(E e)
    Return true if the element must be kept, false if it must be filtered
  • Method Details

    • filter

      boolean filter(E e)
      Return true if the element must be kept, false if it must be filtered
      Parameters:
      e - the element to check
      Returns:
      true if the element must be kept, false if it must be filtered.