Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NumberValue should have a bigDecimalValue() method #130

Open
msgilligan opened this issue Jul 12, 2020 · 1 comment
Open

NumberValue should have a bigDecimalValue() method #130

msgilligan opened this issue Jul 12, 2020 · 1 comment
Milestone

Comments

@msgilligan
Copy link
Member

It would be really helpful if NumberValue provided a bigDecimalValue() getter. Since the two most common implementations of NumberValue are BigDecimal and long (as well as the two most common standard types that users will be converting to/from) it would be really helpful to be able to write:

BigDecimal standardJavaNumber = myNumberValue.bigDecimalValue()

instead of:

BigDecimal standardJavaNumber = myNumberValue.numberValue(BigDecimal.class)
@keilw keilw added this to the .Next milestone Jul 12, 2020
@keilw
Copy link
Member

keilw commented Jul 12, 2020

That's for a new JSR, @msgilligan you're more than welcome to join a proposed EG, I assume it could happen around the end of the year, certainly not before the summer break.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants