Class ConversionHelper
java.lang.Object
org.evomaster.client.java.sql.heuristic.ConversionHelper
Utility class for converting various date/time objects to
Instant.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BooleanconvertToBoolean(Object object) static DoubleconvertToDouble(Object object) static InstantconvertToInstant(Object object) Converts an object to anInstant.static TruthnessconvertToTruthness(Object object)
-
Constructor Details
-
ConversionHelper
public ConversionHelper()
-
-
Method Details
-
convertToInstant
Converts an object to anInstant. The object can be of typeTime,Date,Date,OffsetDateTime,OffsetTime,Long, orString.- 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
-
convertToTruthness
-
convertToBoolean
-