Interface ProductFilter


public interface ProductFilter
A filter for products.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final ProductFilter
    A filter that accepts all products (does not filter at all).
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    accept(Product product)
     
  • Field Details

    • ALL

      static final ProductFilter ALL
      A filter that accepts all products (does not filter at all).
  • Method Details

    • accept

      boolean accept(Product product)
      Parameters:
      product - The product.
      Returns:
      true, if the given product is accepted by this filter.