Class Compare

All Implemented Interfaces:
Iterable<Function>, Callable, StatefulSystemFunction, Function, GroundedValue<Function>, Item<Function>, Sequence<Function>

public class Compare extends CollatingFunctionFixed
This class implements the XPath 2.0 fn:compare() function
  • Constructor Details

    • Compare

      public Compare()
  • Method Details

    • call

      public ZeroOrOne<Int64Value> call(XPathContext context, Sequence[] arguments) throws XPathException
      Description copied from interface: Function
      Invoke the function
      Parameters:
      context - the XPath dynamic evaluation context
      arguments - the actual arguments to be supplied
      Returns:
      the result of invoking the function
      Throws:
      XPathException - if a dynamic error occurs within the function