@Immutable public class SparseArray<T> extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SparseArray.Builder<T> |
| Constructor and Description |
|---|
SparseArray(int[] shape,
int[] track,
List<T> content,
int ndups) |
| Modifier and Type | Method and Description |
|---|---|
int |
countMissing() |
int |
countNotMissing() |
List<T> |
getContent() |
T |
getContent(int idx) |
T |
getContent(int[] index) |
float |
getDensity() |
int |
getNdups() |
int |
getRank() |
int[] |
getShape() |
int |
getTotalSize() |
int[] |
getTrack() |
int |
getTrack(int idx) |
void |
showContent(Formatter f) |
void |
showInfo(Formatter info,
GribRecordStats all) |
void |
showMissing(Formatter info) |
void |
showTracks(Formatter f) |
public T getContent(int[] index)
public int[] getShape()
public int getRank()
public int getTotalSize()
public int[] getTrack()
public int getTrack(int idx)
public int countNotMissing()
public int countMissing()
public float getDensity()
public int getNdups()
public void showInfo(Formatter info, GribRecordStats all)
public void showMissing(Formatter info)
public void showContent(Formatter f)
public void showTracks(Formatter f)