Class ConversionHelper

java.lang.Object
org.evomaster.client.java.sql.heuristic.ConversionHelper

public class ConversionHelper extends Object
Utility class for converting various date/time objects to Instant.
  • Constructor Details

    • ConversionHelper

      public ConversionHelper()
  • Method Details

    • convertToInstant

      public static Instant convertToInstant(Object object)
      Converts an object to an Instant. The object can be of type Time, Date, Date, OffsetDateTime, OffsetTime, Long, or String.
      Parameters:
      object - the object to convert
      Returns:
      the converted Instant, or null if the input object is null
      Throws:
      IllegalArgumentException - if the object is not a supported type
    • convertToDouble

      public static Double convertToDouble(Object object)
    • convertToTruthness

      public static org.evomaster.client.java.distance.heuristics.Truthness convertToTruthness(Object object)
    • convertToBoolean

      public static Boolean convertToBoolean(Object object)
    • convertToUUID

      public static UUID convertToUUID(Object object)