Class Options
java.lang.Object
org.opencastproject.util.data.functions.Options
Option related functions.-
Method Summary
Modifier and TypeMethodDescriptionasList()Apply effecteto the result offwhich is then returned.static <A> Option<A> m (m a) -> m asequenceOpt(List<Option<A>> as) Sequence a list of options.Returns some(message) if predicate is false, none otherwise.
-
Method Details
-
join
m (m a) -> m a -
asList
-
toOption
Returns some(message) if predicate is false, none otherwise. -
sequenceOpt
Sequence a list of options. [Option a] -> Option [a] -
foreach
public static <A,B> Function<A,Option<B>> foreach(Function<? super A, ? extends Option<? extends B>> f, Effect<? super B> e) Apply effecteto the result offwhich is then returned.
-