- 链接地址:https://blog.csdn.net/LHBGXX/article/details/118336330
- 链接标题:多线程学习三十一:不可变设计-CSDN博客
- 所属网站:blog.csdn.net
- 被收藏次数:512
文章浏览阅读155次。大家更为熟悉的 String 类也是不可变的,以它为例,说明一下不可变设计的要素public final class String implements java.io.Serializable, Comparable<String>, CharSequence { private final char value[]; /** Cache the hash code for the str
版权声明:本文发布于特牛网址导航 内容均来源于互联网 如有侵权联系删除