Package

software.uncharted.salt.core

util

Permalink

package util

Visibility
  1. Public
  2. All

Type Members

  1. class SparseArray[T] extends ArrayLike[T, SparseArray[T]] with Builder[T, SparseArray[T]] with Serializable

    Permalink

    An integer-indexed sparse array implementation, currently based on HashMap.

    An integer-indexed sparse array implementation, currently based on HashMap. Specialized for storing Ints, Longs and Doubles Automatically materializes into a dense array when the number of non-default values stored exceeds some threshold. Probably not thread-safe due to lack of locking on materialization. TODO: https://docs.oracle.com/javase/7/docs/api/java/util/concurrent/locks/ReadWriteLock.html

    T

    the type of value being stored in the SparseArray

Ungrouped