Interface ResourceList.ResourceFilter

Enclosing class:
ResourceList
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface ResourceList.ResourceFilter
Filter a ResourceList using a predicate mapping a Resource object to a boolean, producing another ResourceList for all items in the list for which the predicate is true.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    accept(Resource resource)
    Whether or not to allow a Resource list item through the filter.
  • Method Details

    • accept

      boolean accept(Resource resource)
      Whether or not to allow a Resource list item through the filter.
      Parameters:
      resource - The Resource item to filter.
      Returns:
      Whether or not to allow the item through the filter. If true, the item is copied to the output list; if false, it is excluded.