W3cubDocs

/Haxe Java

Optional<T>

package java.util

Available on java

Static methods

staticempty<T>():Optional<T>

staticof<T>(param1:T):Optional<T>

staticofNullable<T>(param1:T):Optional<T>

Methods

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

orElseThrow<X>(param1:Supplier<X>):T

toString():String

© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/java/util/Optional.html