Class DeepEqual

java.lang.Object
org.basex.query.func.fn.DeepEqual

public final class DeepEqual extends Object
Utility class for comparing XQuery values.
Author:
BaseX Team 2005-21, BSD License, Christian Gruen
  • Constructor Details

    • DeepEqual

      public DeepEqual()
      Constructor.
    • DeepEqual

      public DeepEqual(InputInfo info)
      Constructor.
      Parameters:
      info - input info
  • Method Details

    • flag

      public DeepEqual flag(DeepEqual.Mode flag)
      Sets the specified flag.
      Parameters:
      flag - flag
      Returns:
      self reference
    • collation

      public DeepEqual collation(Collation cl)
      Sets a collation.
      Parameters:
      cl - collation
      Returns:
      self reference
    • equal

      public boolean equal(Value value1, Value value2) throws QueryException
      Checks values for deep equality.
      Parameters:
      value1 - first value
      value2 - second value
      Returns:
      result of check
      Throws:
      QueryException - query exception
    • equal

      public boolean equal(Iter iter1, Iter iter2) throws QueryException
      Checks values for deep equality.
      Parameters:
      iter1 - first iterator
      iter2 - second iterator
      Returns:
      result of check
      Throws:
      QueryException - query exception
    • equal

      public boolean equal(Iter iter1, Iter iter2, QueryContext qc) throws QueryException
      Checks values for deep equality.
      Parameters:
      iter1 - first iterator
      iter2 - second iterator
      qc - query context (allows interruption of process, can be null)
      Returns:
      result of check
      Throws:
      QueryException - query exception