Package io.atlassian.fugue.optic
Class Getter<S,A>
- java.lang.Object
-
- io.atlassian.fugue.optic.Getter<S,A>
-
-
Constructor Summary
Constructors Constructor Description Getter()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Fold<S,A>asFold()static <A> Getter<Either<A,A>,A>codiagonal()<B> Fold<S,B>composeFold(Fold<A,B> other)<B> Getter<S,B>composeGetter(Getter<A,B> other)<B,C,D>
Getter<S,C>composeIso(PIso<A,B,C,D> other)<B,C,D>
Getter<S,C>composeLens(PLens<A,B,C,D> other)<B,C,D>
Fold<S,C>composeOptional(POptional<A,B,C,D> other)<B,C,D>
Fold<S,C>composePrism(PPrism<A,B,C,D> other)<B> Getter<Pair<S,B>,Pair<A,B>>first()abstract Aget(S s)get the target of aGetterstatic <S,A>
Getter<S,A>getter(java.util.function.Function<S,A> get)static <A> Getter<A,A>id()<S1,A1>
Getter<Pair<S,S1>,Pair<A,A1>>product(Getter<S1,A1> other)pair two disjointGetter<B> Getter<Pair<B,S>,Pair<B,A>>second()<S1> Getter<Either<S,S1>,A>sum(Getter<S1,A> other)join twoGetterwith the same target
-
-
-
Method Detail
-
sum
public final <S1> Getter<Either<S,S1>,A> sum(Getter<S1,A> other)
join twoGetterwith the same target
-
product
public final <S1,A1> Getter<Pair<S,S1>,Pair<A,A1>> product(Getter<S1,A1> other)
pair two disjointGetter
-
id
public static <A> Getter<A,A> id()
-
getter
public static <S,A> Getter<S,A> getter(java.util.function.Function<S,A> get)
-
-