Ops

kyo.Maybe$package.Maybe.Ops
final implicit class Ops[A](maybe: Maybe[A]) extends AnyVal

Provides operations on Maybe instances.

Attributes

Graph
Supertypes
class AnyVal
trait Matchable
class Any

Members list

Value members

Concrete methods

def get: A

Gets the value contained in the Maybe instance.

Gets the value contained in the Maybe instance.

Attributes

Returns

the contained value

Throws
NoSuchElementException

if the instance is empty

def isEmpty: Boolean

Checks if the Maybe instance is empty.

Checks if the Maybe instance is empty.

Attributes

Returns

true if the instance is empty, false otherwise