Hello,
Is there a good way to customize ToStringBuilder.reflectionToString to
output a customized format based on the type of field?
For example, if a class contains a field of type java.util.Date, how can one
make ToStringBuilder.reflectionToString use a custom SimpleDateFormatter on
the field instead of Date's toString()?
[java.text.SimpleDateFormat("yyyy-MM-dd").format(myField) instead of
myField.toString();]
I saw some customization options in ToStringStyle but did not see an option
to customize formatting by type of field. Is this possible? Any tips
appreciated. Thanks.
Brian
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]