Package io.atlassian.fugue.optic
Class Optional<S,A>
java.lang.Object
io.atlassian.fugue.optic.POptional<S,S,A,A>
io.atlassian.fugue.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 aPOptionalor nothing if there is no targetgetOrModify(S s) get the target of aPOptionalor modify the source in case there is no targetstatic <S> Optional<S, S> id()modify polymorphically the target of aPOptionalwith a functionmodifyEitherF(Function<A, Either<L, A>> f) modify polymorphically the target of aPOptionalwith an Applicative functionmodifyFunctionF(Function<A, Function<C, A>> f) modify polymorphically the target of aPOptionalwith an Applicative functionmodifyIterableF(Function<A, Iterable<A>> f) modify polymorphically the target of aPOptionalwith an Applicative functionmodifyOptionF(Function<A, Option<A>> f) modify polymorphically the target of aPOptionalwith an Applicative functionmodify polymorphically the target of aPOptionalwith an Applicative functionmodifySupplierF(Function<A, Supplier<A>> f) modify polymorphically the target of aPOptionalwith an Applicative functionstatic <S,A> Optional <S, A> second()get the modified source of aPOptionaljoin twoOptionalwith the same targetMethods inherited from class io.atlassian.fugue.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:POptionalget the modified source of aPOptional -
modifySupplierF
Description copied from class:POptionalmodify polymorphically the target of aPOptionalwith an Applicative function -
modifyOptionF
Description copied from class:POptionalmodify polymorphically the target of aPOptionalwith an Applicative function -
modifyFunctionF
Description copied from class:POptionalmodify polymorphically the target of aPOptionalwith an Applicative function -
modifyEitherF
Description copied from class:POptionalmodify polymorphically the target of aPOptionalwith an Applicative function -
modifyIterableF
Description copied from class:POptionalmodify polymorphically the target of aPOptionalwith an Applicative function -
modifyPairF
Description copied from class:POptionalmodify polymorphically the target of aPOptionalwith an Applicative function -
modify
Description copied from class:POptionalmodify polymorphically the target of aPOptionalwith a function -
getOrModify
Description copied from class:POptionalget the target of aPOptionalor modify the source in case there is no target -
getOption
Description copied from class:POptionalget the target of aPOptionalor nothing if there is no target -
sum
join twoOptionalwith the same target -
first
-
second
-
composeSetter
-
composeTraversal
-
composeOptional
-
composePrism
-
composeLens
-
composeIso
-
asSetter
-
asTraversal
-
id
-
optional
-