Package com.mojang.datafixers.kinds
Enum Class OptionalBox.Instance
- All Implemented Interfaces:
App<OptionalBox.Instance.Mu,
,OptionalBox.Mu> Applicative<OptionalBox.Mu,
,OptionalBox.Instance.Mu> Functor<OptionalBox.Mu,
,OptionalBox.Instance.Mu> Kind1<OptionalBox.Mu,
,OptionalBox.Instance.Mu> Traversable<OptionalBox.Mu,
,OptionalBox.Instance.Mu> Serializable
,Comparable<OptionalBox.Instance>
,Constable
- Enclosing class:
- OptionalBox<T>
public static enum OptionalBox.Instance
extends Enum<OptionalBox.Instance>
implements Applicative<OptionalBox.Mu,OptionalBox.Instance.Mu>, Traversable<OptionalBox.Mu,OptionalBox.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 TypeMethodDescription<A,
R> Function<App<OptionalBox.Mu, A>, App<OptionalBox.Mu, R>> lift1
(App<OptionalBox.Mu, Function<A, R>> function) <A,
B, R> BiFunction<App<OptionalBox.Mu, A>, App<OptionalBox.Mu, B>, App<OptionalBox.Mu, R>> lift2
(App<OptionalBox.Mu, BiFunction<A, B, R>> function) <T,
R> App<OptionalBox.Mu, R> map
(Function<? super T, ? extends R> func, App<OptionalBox.Mu, T> ts) <A> App<OptionalBox.Mu,
A> point
(A a) <F extends K1,
A, B>
App<F,App<OptionalBox.Mu, B>> traverse
(Applicative<F, ?> applicative, Function<A, App<F, B>> function, App<OptionalBox.Mu, A> input) static OptionalBox.Instance
Returns the enum constant of this class with the specified name.static OptionalBox.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
Methods inherited from interface com.mojang.datafixers.kinds.Applicative
ap, ap, ap10, ap11, ap12, ap13, ap14, ap15, ap16, ap2, ap3, ap4, ap5, ap6, ap7, ap8, ap9, apply2, apply3, apply4, apply5, apply6, apply7, apply8, apply9, lift3, lift4, lift5, lift6, lift7, lift8, lift9
Methods inherited from interface com.mojang.datafixers.kinds.Kind1
group, group, group, group, group, group, group, group, group, group, group, group, group, group, group, group
Methods inherited from interface com.mojang.datafixers.kinds.Traversable
flip
-
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
public <T,R> App<OptionalBox.Mu,R> map(Function<? super T, ? extends R> func, App<OptionalBox.Mu, T> ts) - Specified by:
map
in interfaceFunctor<OptionalBox.Mu,
OptionalBox.Instance.Mu>
-
point
- Specified by:
point
in interfaceApplicative<OptionalBox.Mu,
OptionalBox.Instance.Mu>
-
lift1
public <A,R> Function<App<OptionalBox.Mu,A>, lift1App<OptionalBox.Mu, R>> (App<OptionalBox.Mu, Function<A, R>> function) - Specified by:
lift1
in interfaceApplicative<OptionalBox.Mu,
OptionalBox.Instance.Mu>
-
lift2
public <A,B, BiFunction<App<OptionalBox.Mu,R> A>, lift2App<OptionalBox.Mu, B>, App<OptionalBox.Mu, R>> (App<OptionalBox.Mu, BiFunction<A, B, R>> function) - Specified by:
lift2
in interfaceApplicative<OptionalBox.Mu,
OptionalBox.Instance.Mu>
-
traverse
public <F extends K1,A, App<F,B> App<OptionalBox.Mu, traverseB>> (Applicative<F, ?> applicative, Function<A, App<F, B>> function, App<OptionalBox.Mu, A> input) - Specified by:
traverse
in interfaceTraversable<OptionalBox.Mu,
OptionalBox.Instance.Mu>
-