maspack.properties
Class NumericConverter
java.lang.Object
maspack.properties.NumericConverter
public class NumericConverter
- extends java.lang.Object
Method Summary |
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)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NumericConverter
public NumericConverter(java.lang.Object valueObject)
NumericConverter
public NumericConverter(NumericConverter conv)
isNumeric
public static boolean isNumeric(java.lang.Object objOrClass)
- Returns true if a specified object or class is compatible with a numeric
property.
- Parameters:
objOrClass
- object or class to test
getDimension
public static int getDimension(java.lang.Object value)
getFieldNames
public static java.lang.String[] getFieldNames(java.lang.Object objOrClass)
- Returns labels for the individual fields of a numeric type,
if any. If no field names are known, then null is returned.
- Parameters:
objOrClass
- object or class to test
getDimension
public int getDimension()
arrayToObject
public java.lang.Object arrayToObject(double[] vals)
objectToArray
public double[] objectToArray(java.lang.Object obj)
objectToArray
public void objectToArray(double[] array,
java.lang.Object obj)