P
- the Profunctor
boundF
- the Functor
boundS
- the left side and right side's functor embedding of the output profunctorA
- the left side and right side's functor embedding of the input profunctorpublic static interface Optic.Simple<P extends Profunctor<?,?,? extends P>,F extends Functor<?,? extends F>,S,A> extends Optic<P,F,S,S,A,A>
Optic.Simple<P extends Profunctor<?,?,? extends P>,F extends Functor<?,? extends F>,S,A>
Modifier and Type | Method and Description |
---|---|
static <P extends Profunctor<?,?,? extends P>,F extends Functor<?,? extends F>,S,A> |
adapt(Optic<? super P,? super F,S,S,A,A> optic)
Adapt an
Optic with S/T and A/B unified into a simple optic . |
default <B> Optic.Simple<P,F,S,B> |
andThen(Optic.Simple<? super P,? super F,A,B> f)
Compose two simple optics from left to right.
|
default <R> Optic.Simple<P,F,R,A> |
compose(Optic.Simple<? super P,? super F,R,S> g)
Compose two simple optics from right to left.
|
default <B> Optic.Simple<P,F,S,B> andThen(Optic.Simple<? super P,? super F,A,B> f)
B
- the new left side and right side's functor embedding of the input profunctorf
- the other simple opticdefault <R> Optic.Simple<P,F,R,A> compose(Optic.Simple<? super P,? super F,R,S> g)
R
- the new left side and right side's functor embedding of the output profunctorg
- the other simple opticstatic <P extends Profunctor<?,?,? extends P>,F extends Functor<?,? extends F>,S,A> Optic.Simple<P,F,S,A> adapt(Optic<? super P,? super F,S,S,A,A> optic)
Optic
with S/T and A/B unified into a simple optic
.P
- the Profunctor
boundF
- the Functor
boundS
- the left side and the right side's functor embedding of the output profunctorA
- the left side and the right side's functor embedding of the input profunctoroptic
- the Optic
Optic.Simple
optic