Package com.mojang.datafixers.kinds
Enum Class IdF.Instance
- All Implemented Interfaces:
App<IdF.Instance.Mu,
,IdF.Mu> Applicative<IdF.Mu,
,IdF.Instance.Mu> Functor<IdF.Mu,
,IdF.Instance.Mu> Kind1<IdF.Mu,
,IdF.Instance.Mu> Serializable
,Comparable<IdF.Instance>
,Constable
public static enum IdF.Instance
extends Enum<IdF.Instance>
implements Functor<IdF.Mu,IdF.Instance.Mu>, Applicative<IdF.Mu,IdF.Instance.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 TypeMethodDescriptionlift2
(App<IdF.Mu, BiFunction<A, B, R>> function) point
(A a) static IdF.Instance
Returns the enum constant of this class with the specified name.static IdF.Instance[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
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
-
map
- Specified by:
map
in interfaceFunctor<IdF.Mu,
IdF.Instance.Mu>
-
point
- Specified by:
point
in interfaceApplicative<IdF.Mu,
IdF.Instance.Mu>
-
lift1
- Specified by:
lift1
in interfaceApplicative<IdF.Mu,
IdF.Instance.Mu>
-
lift2
public <A,B, BiFunction<App<IdF.Mu,R> A>, lift2App<IdF.Mu, B>, App<IdF.Mu, R>> (App<IdF.Mu, BiFunction<A, B, R>> function) - Specified by:
lift2
in interfaceApplicative<IdF.Mu,
IdF.Instance.Mu>
-