Package

software.uncharted.salt.core

util

Permalink

package util

Visibility
  1. Public
  2. All

Type Members

  1. class SparseArray[T] extends 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.

    Note that this is not a standard scala sequence. Use the .seq method to obtain an equivalent that is, if needed.

    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

Value Members

  1. object SparseArray extends Serializable

    Permalink

Ungrouped