public class NumericConverter
extends java.lang.Object
Constructor and Description |
---|
NumericConverter(NumericConverter conv) |
NumericConverter(java.lang.Object valueObject) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
arrayToObject(double[] vals) |
int |
getDimension() |
static int |
getDimension(java.lang.Object value) |
static java.lang.String[] |
getFieldNames(java.lang.Object objOrClass)
Returns labels for the individual fields of a numeric type,
if any.
|
static boolean |
isNumeric(java.lang.Object objOrClass)
Returns true if a specified object or class is compatible with a numeric
property.
|
void |
objectToArray(double[] array,
java.lang.Object obj) |
double[] |
objectToArray(java.lang.Object obj) |
public NumericConverter(java.lang.Object valueObject)
public NumericConverter(NumericConverter conv)
public static boolean isNumeric(java.lang.Object objOrClass)
objOrClass
- object or class to testpublic static int getDimension(java.lang.Object value)
public static java.lang.String[] getFieldNames(java.lang.Object objOrClass)
objOrClass
- object or class to testpublic int getDimension()
public java.lang.Object arrayToObject(double[] vals)
public double[] objectToArray(java.lang.Object obj)
public void objectToArray(double[] array, java.lang.Object obj)