常用的函数接口
来源:互联网 发布:淘宝详情页的制作 编辑:程序博客网 时间:2024/05/17 01:33
常用的函数接口:
@FunctionalInterfacepublic interface Function<T, R> { /** * Applies this function to the given argument. * * @param t the function argument * @return the function result */ R apply(T t);}输入参数T,转换为目标类型R
@FunctionalInterfacepublic interface Predicate<T> { /** * Evaluates this predicate on the given argument. * * @param t the input argument * @return {@code true} if the input argument matches the predicate, * otherwise {@code false} */ boolean test(T t);}输入参数T,返回boolean值,做判断使用
@FunctionalInterfacepublic interface Supplier<T> { /** * Gets a result. * * @return a result */ T get();}没有输入,返回T类型数据
@FunctionalInterfacepublic interface Consumer<T> { /** * Performs this operation on the given argument. * * @param t the input argument */ void accept(T t);}输入T类型,没有返回值
0 0
- 常用的函数接口
- 常用的GPIO的标准接口函数
- 常用的mysql接口函数功能
- sqlite3常用的c语言函数接口
- 容器vector的常用接口函数
- qwt中常用的接口函数
- LoadRunner调接口常用的脚本函数
- 常用的mysql接口函数功能
- Linux2.6设备驱动常用的接口函数
- char *和string的字符串处理常用接口函数
- PHP封装curl的调用接口及常用函数
- Java -- 常用的JNI接口函数简介(一)
- Java -- 常用的JNI接口函数简介(二)
- linux编程常用函数接口
- 路由器的常用接口
- 常用的webservice接口
- 常用的webservice接口
- 常用的webservice接口
- nrf51822学习之PPI裸板程序之对于定时器0计数方式的疑惑
- codeforces6D【dfs】
- 关于VC6和VC9的区别
- TCP SYN-Cookie的原理和扩展
- codeforces638C. Road Improvement【dfs】
- 常用的函数接口
- 【BZOJ1179】atm,tarjan缩点+最长路径
- 理解[bzoj 3243][Noi2013]向量内积
- c++学习笔记(3)——关于函数指针与数组
- 内核通知链
- Eclipse安装ADT之后工具栏没有Android sdk and avd manager等问题解决方案
- mfc连接ACCESS2010及以上版本,部分“MicrosoftC++异常”处理
- hdoj5305【dfs】
- BSG白山极客挑战赛——B君的圆锥(计算几何)