接口 SkillFileFilter

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

@FunctionalInterface public interface SkillFileFilter
Filter for deciding whether a skill resource should be uploaded.
  • 方法概要

    修饰符和类型
    方法
    说明
    boolean
    accept(String resourcePath)
    Determines whether a resource path should be accepted for upload.
    Returns a filter that accepts all files.
  • 方法详细资料

    • accept

      boolean accept(String resourcePath)
      Determines whether a resource path should be accepted for upload.
      参数:
      resourcePath - The resource path (relative to the skill root)
      返回:
      true if the resource should be uploaded, false otherwise
    • acceptAll

      static SkillFileFilter acceptAll()
      Returns a filter that accepts all files.
      返回:
      A filter that accepts all files