| Package | Description |
|---|---|
| org.opencastproject.mediapackage | |
| org.opencastproject.util.data | |
| org.opencastproject.util.data.functions |
| Modifier and Type | Method and Description |
|---|---|
static Effect<MediaPackage> |
MediaPackageSupport.removeElements(List<MediaPackageElement> es) |
static Effect<MediaPackageElement> |
MediaPackageSupport.updateElement(MediaPackage mp)
|
| Modifier and Type | Method and Description |
|---|---|
static <A extends MediaPackageElement> |
MediaPackageSupport.modify(A mpe,
Effect<A> e)
Immutable modification of a media package element.
|
static MediaPackage |
MediaPackageSupport.modify(MediaPackage mp,
Effect<MediaPackage> e)
Immutable modification of a media package.
|
| Modifier and Type | Class and Description |
|---|---|
static class |
Effect.X<A>
Version of
Effect that allows for throwing a checked exception. |
| Modifier and Type | Method and Description |
|---|---|
Effect<A> |
Effect.and(Effect<? super A> next)
Run this and the
next effect on the given argument. |
Effect<A> |
Function.toEffect()
Turn this function into an effect by discarding its result.
|
| Modifier and Type | Method and Description |
|---|---|
Effect<A> |
Effect.and(Effect<? super A> next)
Run this and the
next effect on the given argument. |
| Modifier and Type | Field and Description |
|---|---|
static Effect<Effect0> |
Functions.run
Create an effect that runs its argument.
|
| Modifier and Type | Method and Description |
|---|---|
static <A> Effect<A> |
Functions.all(Effect<? super A>... es)
Create an effect that runs all given effects in order.
|
static <A> Effect<A> |
Functions.noop()
Noop effect.
|
static <A> Effect<Effect<A>> |
Functions.run(A a)
Create an effect that runs its argument passing in
a. |
static <A,B> Effect<A> |
Functions.toEffect(Function<? super A,? extends B> f)
Turn a function into an effect by discarding its result.
|
| Modifier and Type | Method and Description |
|---|---|
static <A> Effect<Effect<A>> |
Functions.run(A a)
Create an effect that runs its argument passing in
a. |
| Modifier and Type | Method and Description |
|---|---|
static <A> Effect<A> |
Functions.all(Effect<? super A>... es)
Create an effect that runs all given effects in order.
|
static <A,B> Function<A,Option<B>> |
Options.foreach(Function<? super A,? extends Option<? extends B>> f,
Effect<? super B> e)
Apply effect
e to the result of f which is then returned. |
static <A> Function<Option<A>,Option<A>> |
Functions.liftOpt(Effect<? super A> f)
Promote effect
a -> () to an Option. |
Copyright © 2009–2020 Opencast Project. All rights reserved.