Package fj.data.optic
Class Setter<S,A>
- java.lang.Object
-
- fj.data.optic.PSetter<S,S,A,A>
-
- fj.data.optic.Setter<S,A>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <S> Setter<Either<S,S>,S>codiagonal()<C> Setter<S,C>composeIso(Iso<A,C> other)<C> Setter<S,C>composeSetter(Setter<A,C> other)<C> Setter<S,C>composeTraversal(Traversal<A,C> other)static <S> Setter<S,S>id()F<S,S>modify(F<A,A> f)modify polymorphically the target of aPSetterwith a functionF<S,S>set(A b)set polymorphically the target of aPSetterwith a valuestatic <S,A>
Setter<S,A>setter(F<F<A,A>,F<S,S>> modify)alias forPSetterconstructor with a monomorphic modify function<S1> Setter<Either<S,S1>,A>sum(Setter<S1,A> other)join twoSetterwith the same target-
Methods inherited from class fj.data.optic.PSetter
composeIso, composeLens, composeOptional, composePrism, composeSetter, composeTraversal, pCodiagonal, pId, pSetter, sum
-
-
-
-
Method Detail
-
modify
public F<S,S> modify(F<A,A> f)
Description copied from class:PSettermodify polymorphically the target of aPSetterwith a function
-
set
public F<S,S> set(A b)
Description copied from class:PSetterset polymorphically the target of aPSetterwith a value
-
sum
public <S1> Setter<Either<S,S1>,A> sum(Setter<S1,A> other)
join twoSetterwith the same target
-
id
public static <S> Setter<S,S> id()
-
-