Interface GenericAtomicComparer.AtomicComparisonFunction

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

    public static interface GenericAtomicComparer.AtomicComparisonFunction
    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 Detail

      • compare

        boolean compare​(AtomicValue v0,
                        AtomicValue v1,
                        XPathContext context)
                 throws XPathException
        Compare two atomic values
        v0 - the first atomic value: must not be null
        v1 - the second atomic value: must not be null
        context - the XPath evaluation context, in case the comparison is context-sensitive
        the result of the comparison
        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)