Package io.atlassian.fugue.optic
Class Lens<S,A>
java.lang.Object
io.atlassian.fugue.optic.PLens<S,S,A,A>
io.atlassian.fugue.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 aPLensstatic <S> Lens<S, S> id()static <S,A> Lens <S, A> create aLensusing a pair of functions: one to get the target, one to set the target.modify polymorphically the target of aPLensusing a functionmodifyEitherF(Function<A, Either<L, A>> f) modify polymorphically the target of aPLenswith an Applicative functionmodifyFunctionF(Function<A, Function<C, A>> f) modify polymorphically the target of aPLenswith an Applicative functionmodifyIterableF(Function<A, Iterable<A>> f) modify polymorphically the target of aPLenswith an Applicative functionmodifyOptionF(Function<A, Option<A>> f) modify polymorphically the target of aPLenswith an Applicative functionmodify polymorphically the target of aPLenswith an Applicative functionmodifySupplierF(Function<A, Supplier<A>> f) modify polymorphically the target of aPLenswith an Applicative functionset polymorphically the target of aPLensusing a functionjoin twoLenswith the same targetMethods inherited from class io.atlassian.fugue.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:PLensget the target of aPLens -
set
Description copied from class:PLensset polymorphically the target of aPLensusing a function -
modifyFunctionF
Description copied from class:PLensmodify polymorphically the target of aPLenswith an Applicative function -
modifyEitherF
Description copied from class:PLensmodify polymorphically the target of aPLenswith an Applicative function -
modifyOptionF
Description copied from class:PLensmodify polymorphically the target of aPLenswith an Applicative function -
modifyIterableF
Description copied from class:PLensmodify polymorphically the target of aPLenswith an Applicative function -
modifySupplierF
Description copied from class:PLensmodify polymorphically the target of aPLenswith an Applicative function -
modifyPairF
Description copied from class:PLensmodify polymorphically the target of aPLenswith an Applicative function -
modify
Description copied from class:PLensmodify polymorphically the target of aPLensusing a function -
sum
join twoLenswith the same target -
composeSetter
-
composeTraversal
-
composeOptional
-
composePrism
-
composeLens
-
composeIso
-
asSetter
-
asTraversal
-
asOptional
-
id
-
lens
create aLensusing a pair of functions: one to get the target, one to set the target.
-