摘要:
1:默认初始长度 16 public StringBuffer() { super(16);} 2:append追加 @Override public synchronized StringBuffer append(String str) { toStringCache = null; super 阅读全文
摘要:
hashCode public int hashCode() { int h = hash; if (h == 0 && value.length > 0) { //hash 默认值为0(此时还没有计算hash) && String中的字节数组有值(使用 String str="avc"; hash 阅读全文
摘要:
1.1 equals 与 hashCode https://blog.csdn.net/zj15527620802/article/details/88547914 1.2 equals public boolean equals(Object obj) { return (this == obj) 阅读全文