Class ConvertToInteger
java.lang.Object
com.aquima.interactions.expressions.functions.convert.ConvertToNumericBase
com.aquima.interactions.expressions.functions.convert.ConvertToInteger
- All Implemented Interfaces:
IFunction
,Serializable
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 Summary
ConstructorsConstructorDescriptionConvertToInteger
(DataType fromType) Constructs the function with the type of the argument. -
Method Summary
Methods inherited from class com.aquima.interactions.expressions.functions.convert.ConvertToNumericBase
determineResultType, evaluate, getArguments, isDeprecated
-
Constructor Details
-
ConvertToInteger
Constructs the function with the type of the argument.- Parameters:
fromType
- The type of the argument that needs to be converted.
-
-
Method Details
-
toValue
- Specified by:
toValue
in classConvertToNumericBase
-
toValue
- Specified by:
toValue
in classConvertToNumericBase
-
getName
Description copied from interface:IFunction
This method returns the name of the function.- Returns:
- the name of the function.
-