Class Iso<S,A>
java.lang.Object
fj.data.optic.PIso<S,S,A,A>
fj.data.optic.Iso<S,A>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasLens()asPrism()asSetter()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) first()get the target of aPIsostatic <S> Iso<S, S> id()create anIsobetween any type and itself.static <S,A> Iso <S, A> create anIsousing a pair of functions: one to get the target and one to get the source.pair two disjointIsoreverse()reverse aPIso: the source becomes the target and the target becomes the sourcereverseGet(A a) get the modified source of aPIsosecond()Methods inherited from class PIso
asFold, asGetter, composeFold, composeGetter, composeIso, composeLens, composeOptional, composePrism, composeSetter, composeTraversal, modify, modifyEitherF, modifyFunctionF, modifyIOF, modifyListF, modifyOptionF, modifyP1F, modifyPromiseF, modifyStreamF, modifyTrampolineF, modifyV2F, modifyValidationF, pId, pIso, product, set
-
Field Details
-
pIso
-
-
Constructor Details
-
Iso
-
-
Method Details
-
get
-
reverseGet
-
reverse
-
product
-
first
-
second
-
composeSetter
-
composeTraversal
-
composeOptional
-
composePrism
-
composeLens
-
composeIso
-
asSetter
-
asTraversal
-
asOptional
-
asPrism
-
asLens
-
iso
-
id
-