自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

班门弄斧

知其所以然

  • 博客(16)
  • 收藏
  • 关注

原创 JDK8 TreeMap、HashMap、ConcurrentHashMap和LongAdder

JDK8 TreeMap、HashMap、ConcurrentHashMap和LongAdder

2022-05-31 21:49:18 108

原创 JDK8 LongAdder源码浅析

/** * Base value, used mainly when there is no contention, but also as a * fallback during table initialization races. Updated via CAS. */ volatile long base; /** * Table of cells. When non-null, size is a power of 2. */ volatile Cell[] ce..

2022-05-31 08:58:24 88

原创 JDK8 ConcurrentHashMap源码浅析

DEFAULT_CAPACITY = 16; // 默认数组长度 TREEIFY_THRESHOLD = 8; // 单向链表转双向链表和红黑树需要满足的第一个条件 MIN_TREEIFY_CAPACITY = 64; // 单向链表转双向链表和红黑树需要满足的第二个条件 /** * Table initialization and resizing control. When negative, the * table is being initialized ..

2022-05-29 11:10:14 149

原创 JDK8 HashMap源码浅析

DEFAULT_INITIAL_CAPACITY = 16; // 默认数组长度 MAXIMUM_CAPACITY = 1 << 30; // 大于1000,000,000,即10亿 DEFAULT_LOAD_FACTOR = 0.75f; // 用于计算threshold TREEIFY_THRESHOLD = 8; // 单向链表转双向链表和红黑树需要满足的第一个条件 UNTREEIFY_THRESHOLD = 6; // 在resize操作时,双向链表和红黑树转单向链表..

2022-05-19 17:05:01 190

原创 JDK8 TreeMap源码浅析

增加元素 public V put(K key, V value) { Entry<K,V> t = root; if (t == null) { // 空树,直接插入并结束 compare(key, key); // type (and possibly null) check root = new Entry<>(key, value, null);

2022-05-17 09:35:21 122

原创 红-黑树(Red–black tree)的删除

Reference:Red-Black Tree | Set 3 (Delete)

2022-05-16 12:09:04 96

原创 红-黑树(Red–black tree)的删除

1.2.1.1.11.2.1.1.21.2.1.2.11.2.1.2.21.2.1.3.11.2.1.3.21.2.1.4.11.2.1.4.21.2.2.11.2.2.22.2Reference:Red-Black Tree | Set 3 (Delete)

2022-05-11 10:25:32 75

原创 红-黑树(Red–black tree)的插入

3.13.2.13.2.2

2022-05-09 16:45:06 76

原创 Demo - Speech to Text

Java source code in Github:speechToTextThis demo is based on Microsoft Cognitive Service.PrerequisitesMicrosoft Speaker Recognition API FFmpeg TomcatStepsChange Authentication.java Change config.properties and logback.xml Build and deploy to .

2021-01-16 10:11:14 492

原创 Thread & InterruptedException

If a thread is not active, Thread.interrupt() will not have any effects on it andThread.isInterrupted() will remain to be false.public static void main(String[] args) throws InterruptedException {...

2019-07-08 15:54:30 452

原创 Demo - Corda Network Map

Java source code in Github:corda-networkmapCorda Doorman should be running successfully. Otherwise, please seehere. Deploy the application to Tomcat according to README.md. Unzip "corda-release-...

2019-06-01 18:41:10 271

原创 Demo - Corda Doorman

Java source code in Github:corda-doormanTo begin with, deploy the application to Tomcat according to README.md.Moreover, unzip "corda-release-V3-doorman".certificates stores *.jks. corda.jar...

2019-05-30 21:15:13 349

原创 Demo - Face Recognition

Java source code in Github:faceRecognitionThis demo is based on Microsoft Cognitive Service. If you have no idea about that, please click here.PrerequisitesMicrosoft Face Recognition API Camer...

2018-09-07 13:52:53 339

原创 Demo - Speaker Recognition

Java source code in Github:speakerRecognitionThis demo is based on Microsoft Cognitive Service. If you have no idea about that, please clickhere.PrerequisitesMicrosoft Speaker Recognition API...

2018-09-07 13:39:02 1044

原创 An Example of Azure Face Recognition API

Java source codes in GitHub:testAzureFaceRecognitionAPIIf you ark looking for a demo, please click here.Personally, compared with Speaker Recognition API,Face Recognition APIis easier to use....

2018-07-28 21:02:28 255

原创 An Example of Azure Speaker Recognition API

Java source codes in GitHub:testAzureSpeakerRecognitionAPIIf you are looking for a demo, please click here.Currently, the documents about Speaker Recognition API are not good enough.Besides, the...

2018-07-14 19:17:42 875

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除