Created
June 1, 2012 01:37
-
-
Save skamille/2847943 to your computer and use it in GitHub Desktop.
guava bug
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
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