lishunli / projectlombok

Automatically exported from code.google.com/p/projectlombok
0 stars 0 forks source link

Optional Collection summary in @ToString #524

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Currently the @ToString annotation will expand the elements of a collection.  
For brevity it would be nice to optionally tell the annotation to print the 
contained class and size of the collection.

Original issue reported on code.google.com by sh...@my-family.us on 31 May 2013 at 10:03

GoogleCodeExporter commented 9 years ago
This path leads to a place where @ToString is its own tiny little programming 
language, and where the documentation on features/ToString.html is about 15 
pages long, with the @ToString annotation having about 85 parameters.

Each individual step along that path seems nice enough, but sum it up and it's 
clear that this is not where we wish to go.

The answer is unfortunately: We're going to have to accept that a toString is 
'non-boilerplate' rather quickly once you need stuff like this.

Original comment by reini...@gmail.com on 8 Jul 2013 at 8:32