Package fj.data.optic
Class Prism<S,A>
java.lang.Object
fj.data.optic.PPrism<S,S,A,A>
fj.data.optic.Prism<S,A>
PPrism
restricted to monomorphic update-
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 aPPrism
or nothing if there is no targetgetOrModify
(S s) get the target of aPPrism
or modify the source in case there is no targetstatic <S> Prism
<S, S> id()
static <S,
A> Prism <S, A> reverseGet
(A a) get the modified source of aPPrism
Methods inherited from class fj.data.optic.PPrism
asFold, composeFold, composeGetter, composeIso, composeLens, composeOptional, composePrism, composeSetter, composeTraversal, isMatching, modify, modifyEitherF, modifyFunctionF, modifyIOF, modifyListF, modifyOption, modifyOptionF, modifyP1F, modifyPromiseF, modifyStreamF, modifyTrampolineF, modifyV2F, modifyValidationF, pId, pPrism, re, set, setOption
-
Field Details
-
pPrism
-
-
Constructor Details
-
Prism
-
-
Method Details
-
getOrModify
Description copied from class:PPrism
get the target of aPPrism
or modify the source in case there is no target -
reverseGet
Description copied from class:PPrism
get the modified source of aPPrism
-
getOption
Description copied from class:PPrism
get the target of aPPrism
or nothing if there is no target -
composeSetter
-
composeTraversal
-
composeOptional
-
composeLens
-
composePrism
-
composeIso
-
asSetter
-
asTraversal
-
asOptional
-
id
-
prism
-