Java 7 features backported to Android 2.2+