Skip to content

NumberValue should have a bigDecimalValue() method #130

Description

@msgilligan

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions