You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
The text was updated successfully, but these errors were encountered:
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)
The text was updated successfully, but these errors were encountered: