Container

class Container<T>

A container object which may or may not contain a non-null value. If value is present, isEmpty() will return true and get() will return the value.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun get(): T?

Returns item or null if container is empty.

Link copied to clipboard

Returns true if container has no value and false otherwise.