Created
June 17, 2012 16:00
-
-
Save tonyklawrence/2944941 to your computer and use it in GitHub Desktop.
Some test
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<Integer> numberList = asList(1, 2, 3, 4, 5); | |
// old style | |
transform(numberList, byHalf()); | |
// fluent interface | |
FluentIterable numbers = from(numberList); | |
numbers.transform(byHalf()); | |
// assume byHalf() returns us a Guava Function<Integer,Integer> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment