Class SparseRangeArrayList<T>

  • All Implemented Interfaces:
    Iterable<T>, Collection<T>, List<T>, SparseList<T>

    public class SparseRangeArrayList<T>
    extends AbstractList<T>
    implements SparseList<T>
    A sparse range array is a data structure that efficiently stores arrays of repeated elements by encoding their starting offsets.

    For example, a sequence of characters AAAAABBBBCC is stored as ABC with the following offsets 0, 5, 9.

    Author:
    poirigui
    See Also:
    SparseArrayList