Class EmptyArrayList

All Implemented Interfaces:
Serializable, Cloneable, Iterable, Collection, List, RandomAccess, SequencedCollection

public class EmptyArrayList extends ArrayList
Unmodifiable empty array list. This defines a singleton instance of itself, which can then be used whereever an empty list is convenient. This class is required to support methods which return instances of java.util.ArrayList in order to guarantee random access to the returned list in constant time as part of the method contract. java.util.Collection.EMPTY_LIST is not an instance of java.util.ArrayList, so it cannot be used.
Author:
Dennis M. Sosnoski
See Also: