上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 25 下一页
摘要: 在cpu底层是由三级缓冲区,通常缓存64字节,在java中long为8字节,多线程之间存在缓存一致性协议姐,在变量前后添加7个long进行防止多线程之间的缓冲一致性协议带来的性能浪费 阅读全文
posted @ 2022-06-29 17:56 Arborblog 阅读(50) 评论(0) 推荐(0)
摘要: ![](https://img2022.cnblogs.com/blog/2587651/202206/2587651-20220629104642415-964247983.png) 阅读全文
posted @ 2022-06-29 10:47 Arborblog 阅读(254) 评论(0) 推荐(0)
摘要: posRecordList.stream() .collect(Collectors.collectingAndThen(Collectors.toCollection(() -> new TreeSet<>(Comparator.comparing(f -> f.getTransactionNo( 阅读全文
posted @ 2022-06-27 21:10 Arborblog 阅读(56) 评论(0) 推荐(0)
摘要: Stream API 一.创建Stream //1.Colleaction系列集合提供 List<String> list = new ArrayList<>(); Stream<String> stream = list.stream(); //2.Arrays的静态方法stream(); Emp 阅读全文
posted @ 2022-06-24 18:17 Arborblog 阅读(36) 评论(0) 推荐(0)
摘要: 方法引用 Lambda有方法已经完成了 1.对象::实例方法名 //案例1: Consume<String> consume = (x) -> System.out.println(x); //方法的参数类型和返回值要和要引用的方法的参数类型和返回值一致 PrintStream ps = Syste 阅读全文
posted @ 2022-06-24 14:32 Arborblog 阅读(50) 评论(0) 推荐(0)
摘要: Lambda语法格式 1.无参,无返回值 Runnable runnable = () -> System.out.println("无参,无返回值"); runnable.run(); 2.一个参数,无返回值--只有一个参数小阔号可以不写 Consumer<String> consumer = ( 阅读全文
posted @ 2022-06-24 11:44 Arborblog 阅读(121) 评论(0) 推荐(0)
摘要: 简单的Lambda表达式 import org.junit.Test; import java.util.Comparator; //Arbor 2022/6/24 public class TestLambda { //匿名内部类 @Test public void test1(){ Compar 阅读全文
posted @ 2022-06-24 11:04 Arborblog 阅读(31) 评论(0) 推荐(0)
摘要: 创建条件接口,定制实现接口方法,写调用的条件接口的方法,调用方法时将实现类传入 实体类: import lombok.Data; //Arbor 2022/6/24 @Data //lombok注解的生成get,set... public class Employee { String name; 阅读全文
posted @ 2022-06-24 10:56 Arborblog 阅读(20) 评论(0) 推荐(0)
摘要: 1. 使用Mustache语法(即双大括号{{ }}) DOM: <div id="app"> <h2>{{message}}</h2> <h2>{{message}}, 李**!</h2> <!--mustache语法中,不仅仅可以直接写变量,也可以写简单的表达式--> <h2>{{firstNa 阅读全文
posted @ 2022-06-23 10:17 Arborblog 阅读(889) 评论(0) 推荐(0)
摘要: <div id="my-profile" v-cloak> <a :href="user.homepage" class="my-logo-container"><img :src="user.avatar" class="my-logo" /></a> <div class="my-name-co 阅读全文
posted @ 2022-06-23 10:13 Arborblog 阅读(54) 评论(0) 推荐(0)
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 25 下一页