Package com.mojang.datafixers
Enum Class FunctionType.Instance
- All Implemented Interfaces:
App<FunctionType.Instance.Mu,
,FunctionType.Mu> Kind2<FunctionType.Mu,
,FunctionType.Instance.Mu> AffineP<FunctionType.Mu,
,FunctionType.Instance.Mu> Cartesian<FunctionType.Mu,
,FunctionType.Instance.Mu> Cocartesian<FunctionType.Mu,
,FunctionType.Instance.Mu> Mapping<FunctionType.Mu,
,FunctionType.Instance.Mu> Monoidal<FunctionType.Mu,
,FunctionType.Instance.Mu> MonoidProfunctor<FunctionType.Mu,
,FunctionType.Instance.Mu> Profunctor<FunctionType.Mu,
,FunctionType.Instance.Mu> TraversalP<FunctionType.Mu,
,FunctionType.Instance.Mu> Serializable
,Comparable<FunctionType.Instance>
,Constable
- Enclosing interface:
- FunctionType<A,
B>
public static enum FunctionType.Instance
extends Enum<FunctionType.Instance>
implements TraversalP<FunctionType.Mu,FunctionType.Instance.Mu>, MonoidProfunctor<FunctionType.Mu,FunctionType.Instance.Mu>, Mapping<FunctionType.Mu,FunctionType.Instance.Mu>, Monoidal<FunctionType.Mu,FunctionType.Instance.Mu>, App<FunctionType.Instance.Mu,FunctionType.Mu>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescription<A,
B, C, D> FunctionType<App2<FunctionType.Mu, A, B>, App2<FunctionType.Mu, C, D>> empty()
<A,
B, C> App2<FunctionType.Mu, Pair<A, C>, Pair<B, C>> first
(App2<FunctionType.Mu, A, B> input) <A,
B, C> App2<FunctionType.Mu, Either<A, C>, Either<B, C>> left
(App2<FunctionType.Mu, A, B> input) <A,
B, F extends K1>
App2<FunctionType.Mu,App<F, A>, App<F, B>> mapping
(Functor<F, ?> functor, App2<FunctionType.Mu, A, B> input) <A,
B, C, D> App2<FunctionType.Mu, Pair<A, C>, Pair<B, D>> par
(App2<FunctionType.Mu, A, B> first, Supplier<App2<FunctionType.Mu, C, D>> second) <A,
B> App2<FunctionType.Mu, A, B> plus
(App2<Procompose.Mu<FunctionType.Mu, FunctionType.Mu>, A, B> input) <A,
B, C> App2<FunctionType.Mu, Either<C, A>, Either<C, B>> right
(App2<FunctionType.Mu, A, B> input) <A,
B, C> App2<FunctionType.Mu, Pair<C, A>, Pair<C, B>> second
(App2<FunctionType.Mu, A, B> input) static FunctionType.Instance
Returns the enum constant of this class with the specified name.static FunctionType.Instance[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.<S,
T, A, B> App2<FunctionType.Mu, S, T> wander
(Wander<S, T, A, B> wander, App2<FunctionType.Mu, A, B> input) <A,
B> App2<FunctionType.Mu, A, B> zero
(App2<FunctionType.Mu, A, B> func) Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface com.mojang.datafixers.optics.profunctors.Cocartesian
toFP
Methods inherited from interface com.mojang.datafixers.optics.profunctors.MonoidProfunctor
compose
Methods inherited from interface com.mojang.datafixers.optics.profunctors.Profunctor
dimap, dimap, lmap, rmap
Methods inherited from interface com.mojang.datafixers.optics.profunctors.TraversalP
toFP3, traverse
-
Enum Constant Details
-
INSTANCE
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
dimap
public <A,B, FunctionType<App2<FunctionType.Mu,C, D> A, dimapB>, App2<FunctionType.Mu, C, D>> (Function<C, A> g, Function<B, D> h) - Specified by:
dimap
in interfaceProfunctor<FunctionType.Mu,
FunctionType.Instance.Mu>
-
first
- Specified by:
first
in interfaceCartesian<FunctionType.Mu,
FunctionType.Instance.Mu> - Specified by:
first
in interfaceTraversalP<FunctionType.Mu,
FunctionType.Instance.Mu>
-
second
- Specified by:
second
in interfaceCartesian<FunctionType.Mu,
FunctionType.Instance.Mu>
-
wander
public <S,T, App2<FunctionType.Mu,A, B> S, wanderT> (Wander<S, T, A, B> wander, App2<FunctionType.Mu, A, B> input) - Specified by:
wander
in interfaceTraversalP<FunctionType.Mu,
FunctionType.Instance.Mu>
-
left
public <A,B, App2<FunctionType.Mu,C> Either<A, leftC>, Either<B, C>> (App2<FunctionType.Mu, A, B> input) - Specified by:
left
in interfaceCocartesian<FunctionType.Mu,
FunctionType.Instance.Mu> - Specified by:
left
in interfaceTraversalP<FunctionType.Mu,
FunctionType.Instance.Mu>
-
right
public <A,B, App2<FunctionType.Mu,C> Either<C, rightA>, Either<C, B>> (App2<FunctionType.Mu, A, B> input) - Specified by:
right
in interfaceCocartesian<FunctionType.Mu,
FunctionType.Instance.Mu>
-
par
public <A,B, App2<FunctionType.Mu,C, D> Pair<A, parC>, Pair<B, D>> (App2<FunctionType.Mu, A, B> first, Supplier<App2<FunctionType.Mu, C, D>> second) - Specified by:
par
in interfaceMonoidal<FunctionType.Mu,
FunctionType.Instance.Mu>
-
empty
- Specified by:
empty
in interfaceMonoidal<FunctionType.Mu,
FunctionType.Instance.Mu>
-
zero
- Specified by:
zero
in interfaceMonoidProfunctor<FunctionType.Mu,
FunctionType.Instance.Mu>
-
plus
public <A,B> App2<FunctionType.Mu,A, plusB> (App2<Procompose.Mu<FunctionType.Mu, FunctionType.Mu>, A, B> input) - Specified by:
plus
in interfaceMonoidProfunctor<FunctionType.Mu,
FunctionType.Instance.Mu>
-
mapping
public <A,B, App2<FunctionType.Mu,F extends K1> App<F, mappingA>, App<F, B>> (Functor<F, ?> functor, App2<FunctionType.Mu, A, B> input) - Specified by:
mapping
in interfaceMapping<FunctionType.Mu,
FunctionType.Instance.Mu>
-