摘要:
Consumer定义 @FunctionalInterface public interface Consumer<T> { void accept(T t); default Consumer<T> andThen(Consumer<? super T> after) { Objects.requ 阅读全文
posted @ 2020-05-09 18:40
dousil
阅读(207)
评论(0)
推荐(0)
摘要:
Java 程序语言的后门-反射机制 //通知dousil做事 method.invoke(object,args); //通过反射,将h作为参数,实例化代理类,返回代理实例 return cons.newInstance(new Object[]{h}) //将接口数组赋值一份 final Clas 阅读全文
posted @ 2020-05-09 17:56
dousil
阅读(166)
评论(0)
推荐(0)
摘要:
本文参考网址:https://www.jianshu.com/p/9bcac608c714 https://www.cnblogs.com/yaowen/p/10117893.html Class<?> string01 = person.getClass().getInterfaces()[0]; 阅读全文
posted @ 2020-05-09 17:28
dousil
阅读(402)
评论(0)
推荐(0)
摘要:
参考地址:https://www.cjavapy.com/article/68/ java 中正则表达式匹配多行Pattern.MULTILINE 和Pattern.DOTALL模式 本文介绍java中正则表达式怎么样匹配换行符\r\n 从而实现多行匹配, 1. Pattern.MULTILINE模 阅读全文
posted @ 2020-05-09 09:56
dousil
阅读(2936)
评论(0)
推荐(0)
浙公网安备 33010602011771号