源码
西橙先生
这个作者很懒,什么都没留下…
展开
-
Map集合类Key,Value不为空的源码分析
原创 2021-08-19 22:08:15 · 223 阅读 · 0 评论 -
System.out.println(i03==i04)?是否正确?
首先常量池这个概念,原来以为只要是一个整型,都会放进到常量池,比如,0,1,12222222等。查找后发现,Byte,Short,Integer,Long,Character这5种整型的包装类也只是在对应值小于等于127并且大于等于-128时才可使用常量池,因为他们至占用一个字节(-128~127);再者Integer.valueOf方法中也有判断,如果传递的整型变量>= -128并且小于127时会返回IntegerCache类中一个静态数组中的某一个对象,否则会返回一个新的Int...原创 2021-08-19 19:02:56 · 94 阅读 · 0 评论 -
HashSet
/* * Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */package java.util;import java.io.Inv.原创 2021-08-18 10:17:21 · 53 阅读 · 0 评论 -
Serializable.java
/* * Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */package java.util;import java.util.Ma.原创 2021-08-18 10:12:54 · 114 阅读 · 0 评论 -
AbstractMap
/* * Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */package java.util;import java.util.Ma.原创 2021-08-18 10:10:41 · 91 阅读 · 0 评论 -
CurrentHashMap
/* * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * *//* * * * * * * Written by Doug Lea with assistance from members of JCP JSR-166 * Expert Group and released to t.原创 2021-08-18 10:08:04 · 812 阅读 · 0 评论 -
CurrentMap
/* * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * *//* * * * * * * Written by Doug Lea with assistance from members of JCP JSR-166 * Expert Group and released to t.原创 2021-08-18 10:06:14 · 324 阅读 · 0 评论