12 2021 档案

摘要:四大函数式接口 四大原生函数式接口 函数式接口:Function, 有一个输入和一个输出 断定型接口:Predicate,有一个输入参数,返回值只能是布尔值 消费型接口:Consumer,只有输入值,没有返回值 供给型接口:Supplier,只有返回值 只有一个抽象方法的接口,如Runnable,f 阅读全文
posted @ 2021-12-20 20:32 _Sylvan 阅读(54) 评论(0) 推荐(0)
摘要:LocalDateTime LocalDateTime和DateTimeFormatter都是线程安全的 import java.time.LocalDateTime; import java.time.Month; import java.time.format.DateTimeFormatter 阅读全文
posted @ 2021-12-20 20:10 _Sylvan 阅读(78) 评论(0) 推荐(0)
摘要:枚举 public class Test { public static void main(String[] args) { System.out.println(judge("ROLE_ROOT_ADMIN")); } public static String judge(String role 阅读全文
posted @ 2021-12-17 09:58 _Sylvan 阅读(136) 评论(0) 推荐(0)