接口 Finder

    • 字段概要

      字段 
      修饰符和类型 字段 说明
      static int INDEX_NOT_FOUND  
    • 方法概要

      所有方法 实例方法 抽象方法 默认方法 
      修饰符和类型 方法 说明
      int end​(int start)
      返回结束位置,即最后一个字符后的位置(不包含)
      default Finder reset()
      复位查找器,用于重用对象
      int start​(int from)
      返回开始位置,即起始字符位置(包含),未找到返回-1
    • 字段详细资料

      • INDEX_NOT_FOUND

        static final int INDEX_NOT_FOUND
        另请参阅:
        常量字段值
    • 方法详细资料

      • start

        int start​(int from)
        返回开始位置,即起始字符位置(包含),未找到返回-1
        参数:
        from - 查找的开始位置(包含)
        返回:
        起始字符位置,未找到返回-1
      • end

        int end​(int start)
        返回结束位置,即最后一个字符后的位置(不包含)
        参数:
        start - 找到的起始位置
        返回:
        结束位置,未找到返回-1
      • reset

        default Finder reset()
        复位查找器,用于重用对象
        返回:
        this