Optional

expect class Optional<T>

Container object containing a value which may or may not be null, which allows for checking said value for null-ness, retrieval of said value if it is not null, checking if a value is present.

See java.util.Optional for reference.

Author

Griefed

actual typealias Optional<T> = java.util.Optional<T>

Type alias to link Optional to java.util.Optional