@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 |
calcIndex(int... index) |
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,
Counter all) |
public int calcIndex(int... index)
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 int countNotMissing()
public int countMissing()
public float getDensity()
public int getNdups()
public void showContent(Formatter f)
Copyright © 1999–2015 UCAR/Unidata. All rights reserved.