java.lang.Object
com.aquima.interactions.expressions.functions.convert.ConvertToNumericBase
com.aquima.interactions.expressions.functions.convert.ConvertToInteger
All Implemented Interfaces:
IFunction, Serializable

public class ConvertToInteger extends ConvertToNumericBase
Conversion function that is able to convert various data types to an integer. For numeric types, a default round will be used. A boolean will be converted to either zero (false) or one (true). A text may have an optional second argument specifying the pattern that should be used when parsing the string. A text may have an optional third argument specifying the locale that should be used when parsing the string.
Since:
7.0
Author:
O. Kerpershoek
See Also:
  • Constructor Details

    • ConvertToInteger

      public ConvertToInteger(DataType fromType)
      Constructs the function with the type of the argument.
      Parameters:
      fromType - The type of the argument that needs to be converted.
  • Method Details