Class Optional<S,A>
java.lang.Object
io.atlassian.fugue.optic.POptional<S,S,A,A>
io.atlassian.fugue.optic.Optional<S,A>
-
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 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
-
modifySupplierF
-
modifyOptionF
-
modifyFunctionF
-
modifyEitherF
-
modifyIterableF
-
modifyPairF
-
modify
-
getOrModify
-
getOption
-
sum
-
first
-
second
-
composeSetter
-
composeTraversal
-
composeOptional
-
composePrism
-
composeLens
-
composeIso
-
asSetter
-
asTraversal
-
id
-
optional
-