com.mojang.datafixers.util

public abstract class Either<L, R>

implements App<Either$Mu<R>, L>

com.mojang.datafixers.util.Either

Constructor summary

ModifierConstructor
private ()

Method summary

Modifier and TypeMethod
public static <L, R> Either<L, R>
unbox(App<Either$Mu<R>, L> arg0)
public abstract <C, D> Either<C, D>
mapBoth(Function<? super L, ? extends C> arg0, Function<? super R, ? extends D> arg1)
public abstract <T> T
map(Function<? super L, ? extends T> arg0, Function<? super R, ? extends T> arg1)
public abstract Either<L, R>
ifLeft(Consumer<? super L> arg0)
public abstract Either<L, R>
ifRight(Consumer<? super R> arg0)
public abstract Optional<L>
left()
public abstract Optional<R>
right()
public <T> Either<T, R>
mapLeft(Function<? super L, ? extends T> arg0)
public <T> Either<L, T>
mapRight(Function<? super R, ? extends T> arg0)
public static <L, R> Either<L, R>
left(L arg0)
public static <L, R> Either<L, R>
right(R arg0)
public L
orThrow()
public Either<R, L>
swap()
public <L2> Either<L2, R>
flatMap(Function<L, Either<L2, R>> arg0)