Skip to content

Instantly share code, notes, and snippets.

@zvozin
Created July 11, 2010 20:24
Show Gist options
  • Save zvozin/471809 to your computer and use it in GitHub Desktop.
Save zvozin/471809 to your computer and use it in GitHub Desktop.
public static <T> Collection<T> toStringFiltered(List<T> aListOfTs) {
return Collections2.filter(aListOfTs, new Predicate<T>()
{
public boolean apply(T from) {
return from.toString().isEmpty();
}
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment