Maybe<A extends Object> extension

on
  • A?

Methods

ifNull(A f()) → A

Available on A?, provided by the Maybe extension

Returns result of f if this is null, else returns this.
maybeFlatMap<B extends Object>(Func1<A, B?> f) → B?

Available on A?, provided by the Maybe extension

maybeMap<B extends Object>(Func1<A, B> f) → B?

Available on A?, provided by the Maybe extension

maybeWhere(Predicate<A> f) → A?

Available on A?, provided by the Maybe extension

Filters value based on predicate f and returns either value itself or null.
maybeWhereType<B>() → B?

Available on A?, provided by the Maybe extension

Filters value based on type B and returns either value itself or null.