Class GreaterThanEqualsUtilFunction

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

public class GreaterThanEqualsUtilFunction extends UtilFunction implements ContextualUtilFunction
  • Field Details

  • Constructor Details

    • GreaterThanEqualsUtilFunction

      public GreaterThanEqualsUtilFunction()
  • Method Details

    • call

      public Object call(HigsonContext ctx, Object[] args)
      This method checks if a value from the Higson context is greater than or equal another value.
      Specified by:
      call in class UtilFunction
      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 method supports comparing various types, including: - Strings: Compares lexicographically. - Numbers: Compares numerically. - Dates (java.util.Date, LocalDate, LocalDateTime): Compares chronologically.
      Returns:
      The result of the comparison, returning true if the target object is greater than or equal the given value, or false otherwise.
      Throws:
      HigsonRuntimeException - if fewer than two arguments are provided.