Package com.mojang.datafixers.optics
Class Prism.Instance<A2,B2>
java.lang.Object
com.mojang.datafixers.optics.Prism.Instance<A2,B2>
- All Implemented Interfaces:
App<Cocartesian.Mu,
,Prism.Mu<A2, B2>> Kind2<Prism.Mu<A2,
,B2>, Cocartesian.Mu> Cocartesian<Prism.Mu<A2,
,B2>, Cocartesian.Mu> Profunctor<Prism.Mu<A2,
B2>, Cocartesian.Mu>
public static final class Prism.Instance<A2,B2>
extends Object
implements Cocartesian<Prism.Mu<A2,B2>,Cocartesian.Mu>
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.mojang.datafixers.optics.profunctors.Cocartesian
Cocartesian.Mu
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.mojang.datafixers.optics.profunctors.Cocartesian
toFP
Methods inherited from interface com.mojang.datafixers.optics.profunctors.Profunctor
dimap, dimap, lmap, rmap
-
Constructor Details
-
Instance
public Instance()
-
-
Method Details
-
dimap
public <A,B, FunctionType<App2<Prism.Mu<A2,C, D> B2>, dimapA, B>, App2<Prism.Mu<A2, B2>, C, D>> (Function<C, A> g, Function<B, D> h) - Specified by:
dimap
in interfaceProfunctor<A2,
B2>
-
left
public <A,B, App2<Prism.Mu<A2,C> B2>, leftEither<A, C>, Either<B, C>> (App2<Prism.Mu<A2, B2>, A, B> input) - Specified by:
left
in interfaceCocartesian<A2,
B2>
-
right
public <A,B, App2<Prism.Mu<A2,C> B2>, rightEither<C, A>, Either<C, B>> (App2<Prism.Mu<A2, B2>, A, B> input) - Specified by:
right
in interfaceCocartesian<A2,
B2>
-