Guava 12.0 is the first release which requires at least JDK 6. Further release notes can be found here.
Some nice features are:
- FluentIterable provides a fluent interface for manipulating Iterables with chained method calls:
FluentIterable .from(myIterable) .transform(Functions.toStringFunction()) .limit(10) .toImmutableList();
- Enums.getIfPresent() returns an Optional and can be used to fall back to an optional value in very readable manner:
- TypeToken: an alternative to java.lang.Class mechanisms, which uses reflection-based tricks to allow to manipulate and query generic types at runtime.