* Adds support to `BigDecimal`
Adds to the JsonPrimitive#equals the possibility to support BigDecimal
* Adds test
Adds test to check if the equals work with BigDecimals. Code snippet from issue #904
* Implements review comments
Replaces the `.equals` method with the `compareTo` in the `JsonPrimitive#equals`
Change the ternary operator from `||` to `&&` so we are sure that both are `BigDecimal`
Implements tests
* Changes to follow the google-style-guide
* implements review comment
Co-authored-by: Marcono1234 <Marcono1234@users.noreply.github.com>
* Fixes the `OperatorPrecedence` warn
* Implements code improvements
- Extracts `thisAsDouble` & `otherAsDouble` variables to avoid double functions calls.
- Adds a comment to improve the code readability.
* Implements `BigDecimal` check in the `JsonPrimitive.equals()`
* Formats the code with `spotless:apply`
---------
Co-authored-by: Marcono1234 <Marcono1234@users.noreply.github.com>