DaveAKing / guava-libraries

Automatically exported from code.google.com/p/guava-libraries
Apache License 2.0
0 stars 0 forks source link

Add .omitValues(Predicate) to Objects.ToStringHelper #1589

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Right now we only provide support for omitting null values.  What about empty 
collections, empty strings, empty arrays, absent optionals, etc?

We could add support for filtering based on a Predicate, and then users could 
do things like: omitValues(Predicates.isNull()).  We could optionally deprecate 
omitNullValues() as well.

Original issue reported on code.google.com by kak@google.com on 22 Nov 2013 at 4:27

GoogleCodeExporter commented 9 years ago
I have a strong vote for leaving it just as it is.  I think it gets the 
power/complexity balance just right.

Original comment by kevinb@google.com on 22 Nov 2013 at 4:39

GoogleCodeExporter commented 9 years ago
This issue has been migrated to GitHub.

It can be found at https://github.com/google/guava/issues/<issue id>

Original comment by cgdecker@google.com on 1 Nov 2014 at 4:10

GoogleCodeExporter commented 9 years ago

Original comment by cgdecker@google.com on 1 Nov 2014 at 4:17

GoogleCodeExporter commented 9 years ago

Original comment by cgdecker@google.com on 3 Nov 2014 at 9:08