class Nothing<A : Any!> : Maybe<A>
Nothing() |
fun filter(predicate: Predicate<in A>): Maybe<A> |
|
fun <B : Any!> flatMap(ignored: (in A) -> out Maybe<out B>!): Maybe<B> |
|
fun get(): A |
|
fun getOrElse(defaultValue: A?): A |
|
fun ifJust(action: Consumer1<A>): Maybe<A> |
|
fun ifNothing(action: Consumer0): Maybe<A> |
|
fun isJust(): Boolean |
|
fun <B : Any!> map(ignored: (in A) -> out B): Maybe<B> |
|
fun orElse(defaultMaybe: Maybe<A>): Maybe<A> fun orElse(supplier: Supplier<Maybe<A>!>): Maybe<A> |
open fun getOrNull(): A?
Returns value stored in |
|
open fun <E : Exception!> getOrThrow(exception: Exception): A
Returns |
|
open fun isNothing(): Boolean
|
|
open fun iterator(): MutableIterator<A> |
|
open static fun <B : Any!> just(value: B): Maybe<B>
Creates a |
|
open static fun <B : Any!> nothing(): Maybe<B>
Creates a |
|
open static fun <B : Any!> ofNullable(value: B?): Maybe<B>
Creates a |
|
open static fun <R : Any!> unit(): (R) -> Maybe<R>!
Returns a function that takes a value and returns a monad of that value. The returned function will always return a |