Package fj.data.optic
Class Lens<S,A>
java.lang.Object
fj.data.optic.PLens<S,S,A,A>
fj.data.optic.Lens<S,A>
PLens
with a monomorphic set function-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasSetter()
composeIso
(Iso<A, C> other) composeLens
(Lens<A, C> other) composeOptional
(Optional<A, C> other) composePrism
(Prism<A, C> other) composeSetter
(Setter<A, C> other) composeTraversal
(Traversal<A, C> other) get the target of aPLens
static <S> Lens
<S, S> id()
static <S,
A> Lens <S, A> create aLens
using a pair of functions: one to get the target, one to set the target.modify polymorphically the target of aPLens
using a functionmodifyEitherF
(F<A, Either<L, A>> f) modify polymorphically the target of aPLens
with an Applicative functionmodifyFunctionF
(F<A, F<C, A>> f) modify polymorphically the target of aPLens
with an Applicative functionmodify polymorphically the target of aPLens
with an Applicative functionmodifyListF
(F<A, List<A>> f) modify polymorphically the target of aPLens
with an Applicative functionmodifyOptionF
(F<A, Option<A>> f) modify polymorphically the target of aPLens
with an Applicative functionmodify polymorphically the target of aPLens
with an Applicative functionmodifyPromiseF
(F<A, Promise<A>> f) modify polymorphically the target of aPLens
with an Applicative functionmodifyStreamF
(F<A, Stream<A>> f) modify polymorphically the target of aPLens
with an Applicative functionF
<S, Trampoline<S>> modifyTrampolineF
(F<A, Trampoline<A>> f) modify polymorphically the target of aPLens
with an Applicative functionmodify polymorphically the target of aPLens
with an Applicative function<E> F
<S, Validation<E, S>> modifyValidationF
(F<A, Validation<E, A>> f) modify polymorphically the target of aPLens
with an Applicative functionset polymorphically the target of aPLens
using a functionjoin twoLens
with the same targetMethods inherited from class fj.data.optic.PLens
asFold, asGetter, composeFold, composeGetter, composeIso, composeLens, composeOptional, composePrism, composeSetter, composeTraversal, pId, pLens, sum
-
Field Details
-
pLens
-
-
Constructor Details
-
Lens
-
-
Method Details
-
get
Description copied from class:PLens
get the target of aPLens
-
set
Description copied from class:PLens
set polymorphically the target of aPLens
using a function -
modifyFunctionF
Description copied from class:PLens
modify polymorphically the target of aPLens
with an Applicative function -
modifyEitherF
Description copied from class:PLens
modify polymorphically the target of aPLens
with an Applicative function -
modifyIOF
Description copied from class:PLens
modify polymorphically the target of aPLens
with an Applicative function -
modifyTrampolineF
Description copied from class:PLens
modify polymorphically the target of aPLens
with an Applicative function -
modifyPromiseF
Description copied from class:PLens
modify polymorphically the target of aPLens
with an Applicative function -
modifyListF
Description copied from class:PLens
modify polymorphically the target of aPLens
with an Applicative function -
modifyOptionF
Description copied from class:PLens
modify polymorphically the target of aPLens
with an Applicative function -
modifyStreamF
Description copied from class:PLens
modify polymorphically the target of aPLens
with an Applicative function -
modifyP1F
Description copied from class:PLens
modify polymorphically the target of aPLens
with an Applicative function -
modifyValidationF
Description copied from class:PLens
modify polymorphically the target of aPLens
with an Applicative function -
modifyV2F
Description copied from class:PLens
modify polymorphically the target of aPLens
with an Applicative function -
modify
Description copied from class:PLens
modify polymorphically the target of aPLens
using a function -
sum
join twoLens
with the same target -
composeSetter
-
composeTraversal
-
composeOptional
-
composePrism
-
composeLens
-
composeIso
-
asSetter
-
asTraversal
-
asOptional
-
id
-
lens
create aLens
using a pair of functions: one to get the target, one to set the target.
-