I might have missed something, but my understanding is that the JsonNumEquals class would not view IntNode(1) and LongNode(1) as equivalent as the JsonNumEquals class delegates to each class's equals implementation when comparing IntNodes and LongNodes.
If my understanding is correct, would you consider using another comparison method for integral numbers? For example, could the bigIntegerValue() method be considered as a replacement?
I might have missed something, but my understanding is that the
JsonNumEqualsclass would not viewIntNode(1)andLongNode(1)as equivalent as theJsonNumEqualsclass delegates to each class'sequalsimplementation when comparingIntNodes andLongNodes.If my understanding is correct, would you consider using another comparison method for integral numbers? For example, could the
bigIntegerValue()method be considered as a replacement?