类 SmartList<E>

所有已实现的接口:
ArraySizeTrimmer, Iterable<E>, Collection<E>, List<E>, RandomAccess

public class SmartList<E> extends AbstractList<E> implements RandomAccess, ArraySizeTrimmer
A List which is optimised for the sizes of 0 and 1, in which cases it would not allocate array at all. The tradeoff is the following: this list is slower than ArrayList but occupies less memory in case of 0 or 1 elements. Please use it only if your code contains many near-empty lists outside the very hot loops.
从以下版本开始:
4.0 2022/9/4 19:53
作者:
Harry Yang