java: renamed Optional methods to match java.util.Optional in Java 8