Skip to content

Instantly share code, notes, and snippets.

@krisskross
Created May 18, 2012 17:04
Show Gist options
  • Save krisskross/2726433 to your computer and use it in GitHub Desktop.
Save krisskross/2726433 to your computer and use it in GitHub Desktop.
Function currencyConverter = new Function<Double, Item>() {
@Override
public Double apply(Item item) {
return item.getPrice() * ANOTHER_CURRENCY;
}
}
Collection<Double> prices = Collections2.transform(order, currencyConverter);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment