Package gda.util
Class TypeConverters
java.lang.Object
gda.util.TypeConverters
Class with static members used to convert between various objects
-
Method Summary
Modifier and TypeMethodDescriptionstatic double[]toDoubleArray(Object object) Attempts to convert the given object into an array of doubles.toStringList(Object object) Attempts to convert the given object into a list of strings.
-
Method Details
-
toDoubleArray
Attempts to convert the given object into an array of doubles.- Parameters:
object- object to convert- Returns:
- double array
- Throws:
IllegalArgumentException- if the object cannot be converted into a double array
-
toStringList
Attempts to convert the given object into a list of strings.- Parameters:
object- element to convert- Returns:
- list of strings
-