Skip to content

Instantly share code, notes, and snippets.

@jarek-przygodzki
Created February 2, 2013 18:39
Show Gist options
  • Save jarek-przygodzki/4698740 to your computer and use it in GitHub Desktop.
Save jarek-przygodzki/4698740 to your computer and use it in GitHub Desktop.
Property collector
// log.debug("Returning user ids: {}", collect(users, "id"));
public static Collection collect(Collection collection, String propertyName) {
return CollectionUtils.collect(collection, new BeanToPropertyValueTransformer(propertyName));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment