io.github.cshencode.function.ListFunction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of shen-tool Show documentation
Show all versions of shen-tool Show documentation
工具类-简化steam操作
通过简单的方式完成流 分组、循环
package io.github.cshencode.function;
import java.util.List;
import java.util.function.Function;
/**
*
* -
*
*
* @author css
* @since 2021/8/2
*/
public interface ListFunction {
static Function, T> listFirst() {
return t -> t.get(0);
}
static Function, List> list() {
return t -> t;
}
}