Class SmartList<E>

All Implemented Interfaces:
Iterable<E>, Collection<E>, List<E>, RandomAccess, SequencedCollection<E>

public class SmartList<E> extends AbstractList<E> implements RandomAccess
A List which is optimised for the sizes of 0 and 1, in which cases it would not allocate array at all.