Interface SearchPredicate

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

The leaf predicate an application supplies for a custom search operator so the in-memory context can evaluate it against a cell value (design ยง5.3).

Built-in operators do not use this — their type-aware leaf semantics live inside the in-memory context. The predicate never receives a parsed tree: only the already-split literal string arguments the parser produced (for example, $myOp(a,b) yields ["a","b"]). This keeps the raw-string boundary intact — no parse tree crosses into caller code.

Since:
10.0.0
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    test(Object cellValue, List<String> args)
    Tests whether a cell value matches this custom operator's arguments.
  • Method Details

    • test

      boolean test(Object cellValue, List<String> args)
      Tests whether a cell value matches this custom operator's arguments.
      Parameters:
      cellValue - The row's value for the searched column. May be null when the row has no value.
      args - The literal string arguments parsed from the operator invocation (never null; may be empty).
      Returns:
      true if the row matches.