欢迎光临散文网 会员登陆 & 注册

马老师GoLang后端工程师

2022-10-19 21:49 作者:三国尽归许佳琪  | 我要投稿

} else if ((newCap = oldCap << 1) < MAXIMUM_CAPACITY &&                    oldCap >= DEFAULT_INITIAL_CAPACITY)                newThr = oldThr << 1; // double threshold        } else if (oldThr > 0) // initial capacity was placed in threshold            newCap = oldThr;        else {               // zero initial threshold signifies using defaults            newCap = DEFAULT_INITIAL_CAPACITY;            newThr = (int) (DEFAULT_LOAD_FACTOR * DEFAULT_INITIAL_CAPACITY);        }        if (newThr == 0) {

马老师GoLang后端工程师的评论 (共 条)

分享到微博请遵守国家法律