Class BooleanConverter
- java.lang.Object
-
- com.ezylang.evalex.data.conversion.BooleanConverter
-
- All Implemented Interfaces:
ConverterIfc
public class BooleanConverter extends java.lang.Object implements ConverterIfc
Converter to convert to the BOOLEAN data type.
-
-
Constructor Summary
Constructors Constructor Description BooleanConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanConvert(java.lang.Object object)Checks, if a given object can be converted by this converter.EvaluationValueconvert(java.lang.Object object, ExpressionConfiguration configuration)Called to convert a previously checked data type.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.ezylang.evalex.data.conversion.ConverterIfc
illegalArgument
-
-
-
-
Method Detail
-
convert
public EvaluationValue convert(java.lang.Object object, ExpressionConfiguration configuration)
Description copied from interface:ConverterIfcCalled to convert a previously checked data type.- Specified by:
convertin interfaceConverterIfc- Parameters:
object- The object to convert.configuration- The current expression configuration.- Returns:
- The converted value.
-
canConvert
public boolean canConvert(java.lang.Object object)
Description copied from interface:ConverterIfcChecks, if a given object can be converted by this converter.- Specified by:
canConvertin interfaceConverterIfc- Parameters:
object- The object to convert.- Returns:
trueif the object can be converted, false otherwise.
-
-