Class Fold<S,A>
java.lang.Object
fj.data.optic.Fold<S,A>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncheck if all targets satisfy the predicatecomposeFold(Fold<A, B> other) composeGetter(Getter<A, C> other) composeIso(PIso<A, B, C, D> other) composeLens(PLens<A, B, C, D> other) composeOptional(POptional<A, B, C, D> other) composePrism(PPrism<A, B, C, D> other) check if at least one target satisfies the predicatefind the first target of aFoldmatching the predicatecombine all targets using a target'sMonoidget all the targets of aFoldTODO: Shall it return a Stream as there might be an infinite number of targets?headOption(S s) get the first target of aFoldstatic <A> Fold<A, A> id()join twoFoldwith the same target
-
Constructor Details
-
Fold
public Fold()
-
-
Method Details
-
foldMap
-
fold
-
getAll
-
find
-
headOption
-
exist
-
all
-
sum
-
composeFold
-
composeGetter
-
composeOptional
-
composePrism
-
composeLens
-
composeIso
-
id
-
codiagonal
-