Created
February 2, 2013 18:39
-
-
Save jarek-przygodzki/4698740 to your computer and use it in GitHub Desktop.
Property collector
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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