I have a rowset and I would like to convert it to a row collection, all were empty or empty. The rows are deleted, and all the rest are trimmed.
I can do this in two steps:
final List<String> tokens = Lists.newArrayList(" some ", null, "stuff\t", "", " \nhere"); final Collection<String> filtered = Collections2.filter( Collections2.transform(tokens, new Function<String, String>(){
But is there a way for Guava to combine two actions in one step?
java guava
Sean Patrick Floyd Nov 25 '10 at 13:47 2010-11-25 13:47
source share