add filter support

This commit is contained in:
Looly
2020-03-03 11:18:55 +08:00
parent 8fba51f62b
commit 2e2d43d764
5 changed files with 99 additions and 60 deletions

View File

@@ -2,13 +2,14 @@ package cn.hutool.core.lang;
/**
* 过滤器接口
* @author Looly
*
* @author Looly
*/
@FunctionalInterface
public interface Filter<T> {
/**
* 是否接受对象
*
* @param t 检查的对象
* @return 是否接受对象
*/