Package io.atlassian.fugue.optic
Class PSetter<S,T,A,B>
- java.lang.Object
-
- io.atlassian.fugue.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 java.util.function.Function<S,T>modify(java.util.function.Function<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(java.util.function.Function<java.util.function.Function<A,B>,java.util.function.Function<S,T>> modify)abstract java.util.function.Function<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 java.util.function.Function<S,T> modify(java.util.function.Function<A,B> f)
modify polymorphically the target of aPSetterwith a function
-
set
public abstract java.util.function.Function<S,T> set(B b)
set polymorphically the target of aPSetterwith a value
-
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()
-
pSetter
public static <S,T,A,B> PSetter<S,T,A,B> pSetter(java.util.function.Function<java.util.function.Function<A,B>,java.util.function.Function<S,T>> modify)
-
-