Example below presents very simple aspect that handles so common
toString() property of a class. I found myself putting the same
code in almost every class. Here's the code:
public class Extension
{
...
public String toString()
{
return ToStringBuilder.reflectionToString(
this,
ToStringStyle.MULTI_LINE_STYLE);
}
}