class Just<A : Any!> : Maybe<A>
Just(value: A) |
fun equals(other: Any?): Boolean |
|
fun filter(predicate: Predicate<in A>): Maybe<A> |
|
fun <B : Any!> flatMap(function: (in A) -> out Maybe<out B>!): Maybe<B> |
|
fun get(): A |
|
fun getOrElse(ignored: A?): A |
|
fun hashCode(): Int |
|
fun ifJust(action: Consumer1<A>): Maybe<A> |
|
fun ifNothing(ignored: Consumer0): Maybe<A> |
|
fun isJust(): Boolean |
|
fun <B : Any!> map(function: (in A) -> out B): Maybe<B> |
|
fun orElse(ignored: Maybe<A>): Maybe<A> fun orElse(ignored: 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 |