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