Class NotBlankUtilFunction

java.lang.Object
io.higson.runtime.builtin.implementation.UtilFunction
io.higson.runtime.builtin.implementation.NotBlankUtilFunction
All Implemented Interfaces:
ContextualUtilFunction

public class NotBlankUtilFunction extends UtilFunction implements ContextualUtilFunction
This class represents a utility function for checking a value from the Higson context is not blank.

This class provides a call method that takes in a HigsonContext and an array of arguments.

It retrieves the value from the context using the given path and returns:

  • false: if value is null
  • false: if value is not sting, collection or map
  • false: if value is collection or map but it is empty
  • false: if value is not blank string
  • true: if value is blank string
  • true: if value is collection or map but it is empty