Package net.sf.saxon.expr.sort
Interface GenericAtomicComparer.AtomicComparisonFunction
- Enclosing class:
GenericAtomicComparer
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
An
AtomicComparisonFunction
compares two atomic values to return a result
of true or false. This means it is committed to a particular comparison operator (such
as equals or less than). The supplied atomic values must be non-null.-
Method Summary
Modifier and TypeMethodDescriptionboolean
compare
(AtomicValue v0, AtomicValue v1, XPathContext context) Compare two atomic values
-
Method Details
-
compare
Compare two atomic values- Parameters:
v0
- the first atomic value: must not be nullv1
- the second atomic value: must not be nullcontext
- the XPath evaluation context, in case the comparison is context-sensitive- Returns:
- the result of the comparison
- Throws:
XPathException
- if the values are not comparable, or if the context does not supply the information needed to compare them (such as implicit timezone or collation)
-