Skip to content

Using another comparison method for integral numbers #20

Description

@jaebradley

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions