Package fj.data.optic
Class PSetter<S,T,A,B>
- java.lang.Object
-
- fj.data.optic.PSetter<S,T,A,B>
-
-
Constructor Summary
Constructors Constructor Description PSetter()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description <C,D>
PSetter<S,T,C,D>composeIso(PIso<A,B,C,D> other)<C,D>
PSetter<S,T,C,D>composeLens(PLens<A,B,C,D> other)<C,D>
PSetter<S,T,C,D>composeOptional(POptional<A,B,C,D> other)<C,D>
PSetter<S,T,C,D>composePrism(PPrism<A,B,C,D> other)<C,D>
PSetter<S,T,C,D>composeSetter(PSetter<A,B,C,D> other)<C,D>
PSetter<S,T,C,D>composeTraversal(PTraversal<A,B,C,D> other)compose aPSetterwith aPTraversalabstract F<S,T>modify(F<A,B> f)modify polymorphically the target of aPSetterwith a functionstatic <S,T>
PSetter<Either<S,S>,Either<T,T>,S,T>pCodiagonal()static <S,T>
PSetter<S,T,S,T>pId()static <S,T,A,B>
PSetter<S,T,A,B>pSetter(F<F<A,B>,F<S,T>> modify)abstract F<S,T>set(B b)set polymorphically the target of aPSetterwith a value<S1,T1>
PSetter<Either<S,S1>,Either<T,T1>,A,B>sum(PSetter<S1,T1,A,B> other)join twoPSetterwith the same target
-
-
-
Method Detail
-
modify
public abstract F<S,T> modify(F<A,B> f)
modify polymorphically the target of aPSetterwith a function
-
sum
public final <S1,T1> PSetter<Either<S,S1>,Either<T,T1>,A,B> sum(PSetter<S1,T1,A,B> other)
join twoPSetterwith the same target
-
composeTraversal
public final <C,D> PSetter<S,T,C,D> composeTraversal(PTraversal<A,B,C,D> other)
compose aPSetterwith aPTraversal
-
composeOptional
public final <C,D> PSetter<S,T,C,D> composeOptional(POptional<A,B,C,D> other)
-
pId
public static <S,T> PSetter<S,T,S,T> pId()
-
-