@FunctionalInterface
使用 @FunctionalInterface 对接口进行注解表明该接口为功能性接口,不能再有其他 abstract 方法。
abstract
仅当项目或模块的语言级别为 8 或更高时,此检查才会报告。