Package com.mojang.datafixers
Class FunctionType.ReaderInstance<R>
java.lang.Object
com.mojang.datafixers.FunctionType.ReaderInstance<R>
- All Implemented Interfaces:
App<FunctionType.ReaderInstance.Mu<R>,
,FunctionType.ReaderMu<R>> Functor<FunctionType.ReaderMu<R>,
,FunctionType.ReaderInstance.Mu<R>> Kind1<FunctionType.ReaderMu<R>,
,FunctionType.ReaderInstance.Mu<R>> Representable<FunctionType.ReaderMu<R>,
R, FunctionType.ReaderInstance.Mu<R>>
- Enclosing interface:
- FunctionType<A,
B>
public static final class FunctionType.ReaderInstance<R>
extends Object
implements Representable<FunctionType.ReaderMu<R>,R,FunctionType.ReaderInstance.Mu<R>>
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<B> App<FunctionType.ReaderMu<R>,
B> from
(App<FunctionType.ReaderMu<R>, B> input) <T,
R2> App<FunctionType.ReaderMu<R>, R2> map
(Function<? super T, ? extends R2> func, App<FunctionType.ReaderMu<R>, T> ts) <B> App<FunctionType.ReaderMu<R>,
B> to
(App<FunctionType.ReaderMu<R>, B> input)
-
Constructor Details
-
ReaderInstance
public ReaderInstance()
-
-
Method Details
-
map
public <T,R2> App<FunctionType.ReaderMu<R>,R2> map(Function<? super T, ? extends R2> func, App<FunctionType.ReaderMu<R>, T> ts) - Specified by:
map
in interfaceFunctor<FunctionType.ReaderMu<R>,
FunctionType.ReaderInstance.Mu<R>>
-
to
- Specified by:
to
in interfaceRepresentable<FunctionType.ReaderMu<R>,
R, FunctionType.ReaderInstance.Mu<R>>
-
from
- Specified by:
from
in interfaceRepresentable<FunctionType.ReaderMu<R>,
R, FunctionType.ReaderInstance.Mu<R>>
-