Class SparseArray<V>

  • All Implemented Interfaces:
    LongArray<V>, Serializable, Cloneable, Iterable<V>

    public class SparseArray<V>
    extends AbstractSparseArray<V>
    A data structure resembling an Object array indexed by long values. This data structure is not thread safe and if there exists the possibility that some thread may perform a mutation while other thread(s) are reading/iterating then some form of locking is required to protect the SparseArray. Note that concurrent readers are allowed, thus protecting the SparseArray with a read-write would be appropriate. See SafeLongArray, ReadHeavyLongArray, and CopyOnWriteLongArray for thread-safe LongArray implementations.
    cp 2007.10.08
    See Also:
    Serialized Form