software.uncharted.salt.core
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
the type of value being stored in the SparseArray
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
the type of value being stored in the SparseArray