Skip to content

Instantly share code, notes, and snippets.

@skamille
Created June 1, 2012 01:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save skamille/2847943 to your computer and use it in GitHub Desktop.
Save skamille/2847943 to your computer and use it in GitHub Desktop.
guava bug
List<Item> items = productCatalogClient.callEndpoint(getEndpoint(), map);
List<String> styleNames = Lists.transform(items, new Function<Item, String>() {
@Override
public String apply(Item item) {
return item.getStyleName();
}
});
// Save the styleNames in Cache
CacheUtil.getCache(FILTER_QUERY_CACHE_NAME).put(new Element(key, styleNames));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment