Package gda.util

Class TypeConverters

java.lang.Object
gda.util.TypeConverters

public class TypeConverters extends Object
Class with static members used to convert between various objects
  • Method Details

    • toDoubleArray

      public static double[] toDoubleArray(Object object) throws IllegalArgumentException
      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

      public static List<String> toStringList(Object object)
      Attempts to convert the given object into a list of strings.
      Parameters:
      object - element to convert
      Returns:
      list of strings