Available on java
staticempty<T>():Optional<T>
staticof<T>(param1:T):Optional<T>
staticofNullable<T>(param1:T):Optional<T>
equals(param1:Dynamic):Bool
filter(param1:Predicate<Dynamic>):Optional<T>
flatMap<U>(param1:Function<Dynamic, Optional<U>>):Optional<U>
get():T
hashCode():Int
ifPresent(param1:Consumer<Dynamic>):Void
isPresent():Bool
map<U>(param1:Function<Dynamic, U>):Optional<U>
orElse(param1:T):T
orElseGet(param1:Supplier<T>):T
@:throws("StdTypes")orElseThrow<X>(param1:Supplier<X>):T
toString():String