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

custom types #13

Open
danielburrell opened this issue Mar 15, 2015 · 0 comments
Open

custom types #13

danielburrell opened this issue Mar 15, 2015 · 0 comments

Comments

@danielburrell
Copy link
Owner

Allow users to point to custom types like
uk.co.solong.rest2java.custom.BooleanNumber
a class that tells the controller to accept boolean but provide 1,0 as output
Another example:
uk.co.solong.rest2java.custom.BooleanYes
a class that tells the controller to accept boolean but provide yes,no as output
These can all be helper useful classes, like array to csv
but more generally make the code generic so that it accepts constructor types with tostring
where you promise to provide your own class that accepts a value as a constructor and a string as output. (maybe pass in to constructor regardless rather than just doing toString)
provide override method to call instead of tostring instead. (0-arity)

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

1 participant