Class EqualsUtilFunction
java.lang.Object
io.higson.runtime.builtin.implementation.UtilFunction
io.higson.runtime.builtin.implementation.EqualsUtilFunction
- All Implemented Interfaces:
ContextualUtilFunction
-
Field Summary
FieldsFields inherited from class io.higson.runtime.builtin.implementation.UtilFunction
converter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncall(HigsonContext ctx, Object[] args) This method checks if a value from the Higson context is equal to another value.Methods inherited from class io.higson.runtime.builtin.implementation.UtilFunction
createHigsonRuntimeException, createHigsonRuntimeException, isValid, toTemporalAmountMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.higson.runtime.builtin.implementation.ContextualUtilFunction
getContextPath
-
Field Details
-
CODE
- See Also:
-
INSTANCE
-
-
Constructor Details
-
EqualsUtilFunction
public EqualsUtilFunction()
-
-
Method Details
-
call
This method checks if a value from the Higson context is equal to another value.- Specified by:
callin classUtilFunction- Parameters:
ctx- The HigsonContext object.args- The arguments passed to the method. The first argument should be the path to the target object in the context. The second argument should be the value to compare with the target object. The third argument should be "ignoreCase" if the comparison should be case-insensitive. The fourth argument should be "trim" if the comparison should ignore leading and trailing whitespace.- Returns:
- The result the comparison.
-