Extensions for java.util.Optional
Platform and version requirements: JVM (1.7), JRE8 (1.7)
asSequence
Platform and version requirements: JVM (1.7), JRE8 (1.7)
getOrNull
Platform and version requirements: JVM (1.7), JRE8 (1.7)
toCollection
Appends this Optional's value to the given destination collection if present.
fun <T : Any, C : MutableCollection<in T>> Optional<T>.toCollection( destination: C ): C
Platform and version requirements: JVM (1.7), JRE8 (1.7)
toList
© 2010–2022 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.jvm.optionals/java.util.-optional/index.html