- All Implemented Interfaces:
public class SparseArray
- extends SparseArrayImpl
- implements SparseArrayInterface
The SparseArray represents Data from the datastore along with a flag whether
data exists in a particular index into the array or not.
This Array is designed for arrays that have small numbers of elements with a
medium (200-400) spread on the indices.
This array doesn't shrink the storage as tail-elements are removed because
it assumes that the spread isn't very large.
Only ready only access is allowed to data within this class-instance.
|Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public SparseArray(int length)
public SparseArray toSparseArray()
- Specified by:
toSparseArray in interface
Copyright © 1997, 2013, Oracle. All rights reserved.