com.mojang.datafixers.optics

public abstract class Optics

com.mojang.datafixers.optics.Optics

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
public static <S, T, A, B> Adapter<S, T, A, B>
toAdapter(Optic<? super Profunctor$Mu, S, T, A, B> arg0)
public static <S, T, A, B> Lens<S, T, A, B>
toLens(Optic<? super Cartesian$Mu, S, T, A, B> arg0)
public static <S, T, A, B> Prism<S, T, A, B>
toPrism(Optic<? super Cocartesian$Mu, S, T, A, B> arg0)
public static <S, T, A, B> Affine<S, T, A, B>
toAffine(Optic<? super AffineP$Mu, S, T, A, B> arg0)
public static <S, T, A, B> Getter<S, T, A, B>
toGetter(Optic<? super GetterP$Mu, S, T, A, B> arg0)
public static <S, T, A, B> Traversal<S, T, A, B>
toTraversal(Optic<? super TraversalP$Mu, S, T, A, B> arg0)
static <S, T, A, B, F> Lens<S, T, Pair<F, A>, B>
merge(Lens<S, ?, F, ?> arg0, Lens<S, T, A, B> arg1)
public static <S, T> Adapter<S, T, S, T>
id()
public static <S, T, A, B> Adapter<S, T, A, B>
adapter(Function<S, A> arg0, Function<B, T> arg1)
public static <S, T, A, B> Lens<S, T, A, B>
lens(Function<S, A> arg0, BiFunction<B, S, T> arg1)
public static <S, T, A, B> Prism<S, T, A, B>
prism(Function<S, Either<T, A>> arg0, Function<B, T> arg1)
public static <S, T, A, B> Affine<S, T, A, B>
affine(Function<S, Either<T, A>> arg0, BiFunction<B, S, T> arg1)
public static <S, T, A, B> Getter<S, T, A, B>
getter(Function<S, A> arg0)
public static <R, A, B> Forget<R, A, B>
forget(Function<A, R> arg0)
public static <R, A, B> ForgetOpt<R, A, B>
forgetOpt(Function<A, Optional<R>> arg0)
public static <R, A, B> ForgetE<R, A, B>
forgetE(Function<A, Either<B, R>> arg0)
public static <R, A, B> ReForget<R, A, B>
reForget(Function<R, B> arg0)
public static <S, T, A, B> Grate<S, T, A, B>
grate(FunctionType<FunctionType<FunctionType<S, A>, B>, T> arg0)
public static <R, A, B> ReForgetEP<R, A, B>
reForgetEP(String arg0, Function<Either<A, Pair<A, R>>, B> arg1)
public static <R, A, B> ReForgetE<R, A, B>
reForgetE(String arg0, Function<Either<A, R>, B> arg1)
public static <R, A, B> ReForgetP<R, A, B>
reForgetP(String arg0, BiFunction<A, R, B> arg1)
public static <R, A, B> ReForgetC<R, A, B>
reForgetC(String arg0, Either<Function<R, B>, BiFunction<A, R, B>> arg1)
public static <I, J, X> PStore<I, J, X>
pStore(Function<J, X> arg0, Supplier<I> arg1)
public static <A, B> Function<A, B>
getFunc(App2<FunctionType$Mu, A, B> arg0)
public static <F, G, F2> Proj1<F, G, F2>
proj1()
public static <F, G, G2> Proj2<F, G, G2>
proj2()
public static <F, G, F2> Inj1<F, G, F2>
inj1()
public static <F, G, G2> Inj2<F, G, G2>
inj2()
public static <F, G, F2, G2, A, B> Lens<Either<F, G>, Either<F2, G2>, A, B>
eitherLens(Lens<F, F2, A, B> arg0, Lens<G, G2, A, B> arg1)
public static <F, G, F2, G2, A, B> Affine<Either<F, G>, Either<F2, G2>, A, B>
eitherAffine(Affine<F, F2, A, B> arg0, Affine<G, G2, A, B> arg1)
public static <F, G, F2, G2, A, B> Traversal<Either<F, G>, Either<F2, G2>, A, B>
eitherTraversal(Traversal<F, F2, A, B> arg0, Traversal<G, G2, A, B> arg1)