随笔分类 -  java

摘要:在日常开发中,我们都直接或间接的使用过ReentrantLock,以及他的兄弟们Semaphore,CountdownLatch,ReadwriteLock,但是对于其底层是如果实现锁机制的呢? 下面我们先来看一张图: 大家可能在想,这张图里面并没有看到我们知道ReentrantLock,甚至连Lo 阅读全文
posted @ 2019-11-30 16:03 爱吃螃蟹的牧羊人 阅读(162) 评论(0) 推荐(0) 编辑
摘要:我们可以先由源码注释来了解intern(); When the intern method is invoked, if the pool already contains astring equal to this {@code String} object as determined bythe 阅读全文
posted @ 2019-11-28 15:08 爱吃螃蟹的牧羊人 阅读(88) 评论(0) 推荐(0) 编辑
摘要:1. Gson 1.1 添加pom依赖 <dependency> <groupId>com.google.code.gson</groupId> <artifactId>gson</artifactId> <version>2.2.4</version> </dependency> 1.2 转化方法 阅读全文
posted @ 2019-01-11 11:04 爱吃螃蟹的牧羊人 阅读(488) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示