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.

    @FunctionalInterface
    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
        Parameters:
        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
        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)