mirror of
https://gitee.com/dromara/hutool.git
synced 2025-04-05 17:37:59 +08:00
add @FunctionalInterface
This commit is contained in:
parent
e52a282717
commit
9fa28dcb71
@ -5,6 +5,7 @@ package cn.hutool.core.io;
|
||||
* @author Looly
|
||||
*
|
||||
*/
|
||||
@FunctionalInterface
|
||||
public interface LineHandler {
|
||||
/**
|
||||
* 处理一行数据,可以编辑后存入指定地方
|
||||
|
@ -12,6 +12,7 @@ package cn.hutool.core.lang;
|
||||
* @param <T> 被编辑对象类型
|
||||
* @author Looly
|
||||
*/
|
||||
@FunctionalInterface
|
||||
public interface Editor<T> {
|
||||
/**
|
||||
* 修改过滤后的结果
|
||||
|
@ -5,6 +5,7 @@ package cn.hutool.core.lang;
|
||||
* @author Looly
|
||||
*
|
||||
*/
|
||||
@FunctionalInterface
|
||||
public interface Filter<T> {
|
||||
/**
|
||||
* 是否接受对象
|
||||
|
@ -6,6 +6,7 @@ package cn.hutool.core.lang;
|
||||
*
|
||||
* @param <T> 匹配的对象类型
|
||||
*/
|
||||
@FunctionalInterface
|
||||
public interface Matcher<T>{
|
||||
/**
|
||||
* 给定对象是否匹配
|
||||
|
@ -9,6 +9,7 @@ package cn.hutool.core.lang;
|
||||
* @param <T> 被替换操作的类型
|
||||
* @since 4.1.5
|
||||
*/
|
||||
@FunctionalInterface
|
||||
public interface Replacer<T> {
|
||||
|
||||
/**
|
||||
|
@ -6,6 +6,7 @@ package cn.hutool.core.lang.copier;
|
||||
*
|
||||
* @param <T> 拷贝目标类型
|
||||
*/
|
||||
@FunctionalInterface
|
||||
public interface Copier<T> {
|
||||
/**
|
||||
* 执行拷贝
|
||||
|
@ -12,6 +12,7 @@ package cn.hutool.core.lang.func;
|
||||
* @param <R> 返回值类型
|
||||
* @since 3.1.0
|
||||
*/
|
||||
@FunctionalInterface
|
||||
public interface Func<P, R> {
|
||||
/**
|
||||
* 执行函数
|
||||
|
@ -11,6 +11,7 @@ package cn.hutool.core.lang.func;
|
||||
* @param <R> 返回值类型
|
||||
* @since 4.5.2
|
||||
*/
|
||||
@FunctionalInterface
|
||||
public interface Func0<R> {
|
||||
/**
|
||||
* 执行函数
|
||||
|
@ -12,6 +12,7 @@ package cn.hutool.core.lang.func;
|
||||
* @param <R> 返回值类型
|
||||
* @since 4.2.2
|
||||
*/
|
||||
@FunctionalInterface
|
||||
public interface Func1<P, R> {
|
||||
|
||||
/**
|
||||
|
@ -11,6 +11,7 @@ package cn.hutool.core.lang.func;
|
||||
* @param <P> 参数类型
|
||||
* @since 3.1.0
|
||||
*/
|
||||
@FunctionalInterface
|
||||
public interface VoidFunc<P> {
|
||||
|
||||
/**
|
||||
|
@ -10,6 +10,7 @@ package cn.hutool.core.lang.func;
|
||||
*
|
||||
* @since 3.2.3
|
||||
*/
|
||||
@FunctionalInterface
|
||||
public interface VoidFunc0 {
|
||||
|
||||
/**
|
||||
|
@ -10,6 +10,7 @@ package cn.hutool.core.lang.func;
|
||||
*
|
||||
* @since 3.2.3
|
||||
*/
|
||||
@FunctionalInterface
|
||||
public interface VoidFunc1<P> {
|
||||
|
||||
/**
|
||||
|
@ -8,6 +8,7 @@ package cn.hutool.core.lang.loader;
|
||||
*
|
||||
* @param <T> 对象类型
|
||||
*/
|
||||
@FunctionalInterface
|
||||
public interface Loader<T> {
|
||||
|
||||
/**
|
||||
|
@ -7,6 +7,7 @@ import java.util.List;
|
||||
* @author looly
|
||||
*
|
||||
*/
|
||||
@FunctionalInterface
|
||||
public interface RowHandler {
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user