接口 ResourceFilter

函数接口:
这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。

@FunctionalInterface public interface ResourceFilter
作者:
TODAY
2019-05-25 22:21
  • 方法概要

    修饰符和类型
    方法
    说明
    boolean
    accept(Resource resource)
    Tests whether or not the specified abstract Resource name should be included in a name list.
  • 方法详细资料

    • accept

      boolean accept(Resource resource) throws IOException
      Tests whether or not the specified abstract Resource name should be included in a name list.
      参数:
      resource - The Resource to be tested
      返回:
      true if and only if pathname should be included
      抛出:
      IOException