kotlin-stdlib / kotlin.jvm.optionals / java.util.Optional / Any Any JVM JRE8 1.8 fun < T > Optional < out T > . Any ( ) (source) Returns this Optional 's value if present , or otherwise defaultValue .