Package fj.data.optic
Class Optional<S,A>
java.lang.Object
fj.data.optic.POptional<S,S,A,A>
fj.data.optic.Optional<S,A>
POptional
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) first()
get the target of aPOptional
or nothing if there is no targetgetOrModify
(S s) get the target of aPOptional
or modify the source in case there is no targetstatic <S> Optional
<S, S> id()
static <S,
A> Optional <S, A> ignored()
modify polymorphically the target of aPOptional
with a functionmodifyEitherF
(F<A, Either<L, A>> f) modify polymorphically the target of aPOptional
with an Applicative functionmodifyFunctionF
(F<A, F<C, A>> f) modify polymorphically the target of aPOptional
with an Applicative functionmodify polymorphically the target of aPOptional
with an Applicative functionmodifyListF
(F<A, List<A>> f) modify polymorphically the target of aPOptional
with an Applicative functionmodifyOptionF
(F<A, Option<A>> f) modify polymorphically the target of aPOptional
with an Applicative functionmodify polymorphically the target of aPOptional
with an Applicative functionmodifyPromiseF
(F<A, Promise<A>> f) modify polymorphically the target of aPOptional
with an Applicative functionmodifyStreamF
(F<A, Stream<A>> f) modify polymorphically the target of aPOptional
with an Applicative functionF
<S, Trampoline<S>> modifyTrampolineF
(F<A, Trampoline<A>> f) modify polymorphically the target of aPOptional
with an Applicative functionmodify polymorphically the target of aPOptional
with an Applicative function<E> F
<S, Validation<E, S>> modifyValidationF
(F<A, Validation<E, A>> f) modify polymorphically the target of aPOptional
with an Applicative functionstatic final <S,
A> Optional <S, A> second()
get the modified source of aPOptional
join twoOptional
with the same targetMethods inherited from class fj.data.optic.POptional
asFold, composeFold, composeGetter, composeIso, composeLens, composeOptional, composePrism, composeSetter, composeTraversal, isMatching, modifyOption, pId, pOptional, setOption, sum
-
Field Details
-
pOptional
-
-
Constructor Details
-
Optional
-
-
Method Details
-
set
Description copied from class:POptional
get the modified source of aPOptional
-
modifyValidationF
Description copied from class:POptional
modify polymorphically the target of aPOptional
with an Applicative function -
modifyV2F
Description copied from class:POptional
modify polymorphically the target of aPOptional
with an Applicative function -
modifyTrampolineF
Description copied from class:POptional
modify polymorphically the target of aPOptional
with an Applicative function -
modifyStreamF
Description copied from class:POptional
modify polymorphically the target of aPOptional
with an Applicative function -
modifyPromiseF
Description copied from class:POptional
modify polymorphically the target of aPOptional
with an Applicative function -
modifyP1F
Description copied from class:POptional
modify polymorphically the target of aPOptional
with an Applicative function -
modifyOptionF
Description copied from class:POptional
modify polymorphically the target of aPOptional
with an Applicative function -
modifyListF
Description copied from class:POptional
modify polymorphically the target of aPOptional
with an Applicative function -
modifyIOF
Description copied from class:POptional
modify polymorphically the target of aPOptional
with an Applicative function -
modifyFunctionF
Description copied from class:POptional
modify polymorphically the target of aPOptional
with an Applicative function -
modifyEitherF
Description copied from class:POptional
modify polymorphically the target of aPOptional
with an Applicative function -
modify
Description copied from class:POptional
modify polymorphically the target of aPOptional
with a function -
getOrModify
Description copied from class:POptional
get the target of aPOptional
or modify the source in case there is no target -
getOption
Description copied from class:POptional
get the target of aPOptional
or nothing if there is no target -
sum
join twoOptional
with the same target -
first
-
second
-
composeSetter
-
composeTraversal
-
composeOptional
-
composePrism
-
composeLens
-
composeIso
-
asSetter
-
asTraversal
-
id
-
ignored
-
optional
-