public class SimpleTypeIdentityComparison extends SimpleTypeComparison
In practice, identity comparison delivers the same result as equality comparison in all cases except NaN: NaN is identical to itself but not equal to itself.
This class is a singleton that cannot be externally instantiated.
Constructor and Description |
---|
SimpleTypeIdentityComparison() |
Modifier and Type | Method and Description |
---|---|
boolean |
equal(AtomicSequence a,
AtomicSequence b)
Test whether two values are equal or identical under XSD rules.
|
static SimpleTypeIdentityComparison |
getInstance()
Get the singleton instance of this class
|
compareItems, compareSequences, equalOrIdentical, hash
public static SimpleTypeIdentityComparison getInstance()
public boolean equal(AtomicSequence a, AtomicSequence b)
equal
in interface EqualityMatcher<AtomicSequence>
equal
in class SimpleTypeComparison
a
- the first valueb
- the second valueCopyright (c) 2004-2022 Saxonica Limited. All rights reserved.