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

Not possible to parse string to java.lang.Number #24

Closed
drapostolos opened this issue Jul 28, 2014 · 2 comments
Closed

Not possible to parse string to java.lang.Number #24

drapostolos opened this issue Jul 28, 2014 · 2 comments

Comments

@drapostolos
Copy link
Owner

Not possible to do this:

parseType("1.1", Number.class);
parseType("1.1, 2, 2.0", new GenericType<List<Number>>(){});

It should be possible either by hardcoding to Double, or use java.text.NumberFormat class.

@drapostolos
Copy link
Owner Author

This has been implemented and pushed to master branch.

@drapostolos
Copy link
Owner Author

This is now available in release v0.5.0.

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

No branches or pull requests

1 participant