Modifier and Type | Method and 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 a
PSetter with a function |
F<S,S> |
set(A b)
set polymorphically the target of a
PSetter with a value |
static <S,A> Setter<S,A> |
setter(F<F<A,A>,F<S,S>> modify)
alias for
PSetter constructor with a monomorphic modify function |
<S1> Setter<Either<S,S1>,A> |
sum(Setter<S1,A> other)
join two
Setter with the same target |
composeIso, composeLens, composeOptional, composePrism, composeSetter, composeTraversal, pCodiagonal, pId, pSetter, sum
public F<S,S> modify(F<A,A> f)
PSetter
PSetter
with a functionpublic F<S,S> set(A b)
PSetter
PSetter
with a valuepublic final <S1> Setter<Either<S,S1>,A> sum(Setter<S1,A> other)
Setter
with the same targetpublic static <S> Setter<S,S> id()