Package org.jibx.util

Class LazyList

  • All Implemented Interfaces:
    Iterable, Collection, List

    public class LazyList
    extends AbstractList
    List implementation with lazy array construction and modification tracking. The lazy array construction is a minor optimization, to save the added overhead of a backing array for lists which are frequently empty. The modification tracking feature supports filtered list construction with result caching.
    Author:
    Dennis M. Sosnoski
    • Field Detail

      • EMPTY_ITERATOR

        public static final Iterator EMPTY_ITERATOR
        Singleton iterator for empty collection.
      • EMPTY_LIST

        public static final LazyList EMPTY_LIST
        Unmodifiable empty list instance.
    • Constructor Detail

      • LazyList

        public LazyList()