Class SizeUtilFunction
java.lang.Object
io.higson.runtime.builtin.implementation.UtilFunction
io.higson.runtime.builtin.implementation.SizeUtilFunction
- All Implemented Interfaces:
ContextualUtilFunction
Utility function class to retrieve the size of an object in the Higson context.
-
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) Retrieves the size of an object in the Higson context.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
-
SizeUtilFunction
public SizeUtilFunction()
-
-
Method Details
-
call
Retrieves the size of an object in the Higson context.- Specified by:
callin classUtilFunction- Parameters:
ctx- The Higson context to retrieve the object from.args- An array of arguments.- Returns:
- The size of the object, or 0 if the object is null or the size is not supported.
- Throws:
HigsonRuntimeException- If the object is of unsupported type.
-