Uses of Class
com.identityworksllc.iiq.common.Maybe
-
Packages that use Maybe Package Description com.identityworksllc.iiq.common Utilities, interfaces, and standalone tools for IIQ development -
-
Uses of Maybe in com.identityworksllc.iiq.common
Methods in com.identityworksllc.iiq.common that return Maybe Modifier and Type Method Description <B> Maybe<B>
Maybe. map(Functions.FunctionWithError<T,B> downstream)
Chains a Maybe object by invoking the given function on it.static <A> Maybe<A>
Maybe. of(A value)
Returns a Maybe object containing the given valuestatic <A> Maybe<A>
Maybe. of(Maybe<?> value)
Chains a Maybe object by passing along the Throwable from an existing Maybe into the next.static <A> Maybe<A>
Maybe. of(Maybe<?> value, Class<A> otherwiseExpectedType)
Chains a Maybe object by passing along the Throwable from an existing Maybe into the next.static <A> Maybe<A>
Maybe. of(Class<A> aClass, Functions.SupplierWithError<A> supplier)
Returns a Maybe that is either a value or an error, depending on the outcome of the supplier in question.static <R> Maybe<R>
Maybe. of(Throwable e)
Creates a new maybe from the given throwable with an inferred type by contextstatic <A> Maybe<A>
Maybe. of(Throwable value, Class<A> otherwiseExpectedType)
Returns a Maybe object containing an exception.Methods in com.identityworksllc.iiq.common that return types with arguments of type Maybe Modifier and Type Method Description static <F> Predicate<Maybe<F>>
Maybe. fnHasError()
Creates a Predicate that returns true if the Maybe object has an errorstatic <F> Predicate<Maybe<F>>
Maybe. fnHasValue()
Creates a Predicate that returns true if the Maybe object has a valuestatic <I,O>
Function<I,Maybe<O>>Maybe. wrap(Class<O> aClass, Functions.FunctionWithError<I,O> func)
Returns a function wrapping the input function.Methods in com.identityworksllc.iiq.common with parameters of type Maybe Modifier and Type Method Description void
Maybe.MaybeConsumer. accept(Maybe<T> tMaybe)
Performs this operation on the given argument.static <A> Maybe<A>
Maybe. of(Maybe<?> value)
Chains a Maybe object by passing along the Throwable from an existing Maybe into the next.static <A> Maybe<A>
Maybe. of(Maybe<?> value, Class<A> otherwiseExpectedType)
Chains a Maybe object by passing along the Throwable from an existing Maybe into the next.
-