package flavor.pie.kludge

import java.util.Optional

operator fun <T> Optional<T>.not(): T? = this.orElse(null)

package flavor.pie.kludge

import java.util.Optional

operator fun <T> Optional<T>.not(): T? = this.orElse(null)

val <T: Any?> T.optional: Optional<T> get() = Optional.ofNullable(this)
Add a converter from T? to Optional<T>
Add a converter from T? to Optional<T>

pie-flavor/Kludge