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, hashpublic static SimpleTypeIdentityComparison getInstance()
public boolean equal(AtomicSequence a, AtomicSequence b)
equal in interface EqualityMatcher<AtomicSequence>equal in class SimpleTypeComparisona - the first valueb - the second valueCopyright (c) 2004-2022 Saxonica Limited. All rights reserved.