public class ArrayReader extends Object
| Modifier and Type | Method and Description |
|---|---|
static ArrayReader |
forClass(Class<?> arrayClazz)
Returns an instance of this class suitable for a given array class.
|
int |
getLength(Object array)
Returns array length for a suitable array object.
|
double |
getValue(Object array,
int index)
Returns element numeric value for a suitable array object.
|
public int getLength(Object array)
array - candidate array objectpublic double getValue(Object array, int index)
array - candidate array objectindex if array is of
tye expected by this reader, otherwise Double.NaNpublic static ArrayReader forClass(Class<?> arrayClazz)
arrayClazz - class of arrays to readCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.