Package jadex.common

Interface IFilter<T>

All Known Implementing Classes:
ComposedFilter, ConstantFilter, FileFilter

public interface IFilter<T>
Generic filter interface.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final IFilter<Object>
    A filter that always returns true.
    static final IFilter<Object>
    A filter that always returns false.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    filter(T obj)
    Test if an object passes the filter.
  • Field Details

    • ALWAYS

      static final IFilter<Object> ALWAYS
      A filter that always returns true.
    • NEVER

      static final IFilter<Object> NEVER
      A filter that always returns false.
  • Method Details

    • filter

      boolean filter(T obj)
      Test if an object passes the filter.
      Returns:
      True, if passes the filter.