Because each plan item increases the total string length by roughly the same amount, the ratio of subsequent plateaus provides an indicator of the resize factor for the underlying array.
因为每个计划项增加的字符串长度总数大体相同,所以随后的稳定期比例可以作为重新设置底层数组大小的参考指标。
The new array is generally sized as some factor of the current length.
新数组一般根据当前长度调整大小。
The rope's construction is a key factor: When a rope is constructed directly from an underlying CharacterSequence or character array, it has a simple structure consisting of a single flat rope.
rope的构建是个关键因素:当直接使用底层的CharacterSequence或字符数组构建rope时,它只有一个简单的结构,里面包含一个扁平rope。
应用推荐