History - com.mojang.datafixers.util.Either

1.16.1

Names

com.mojang.datafixers.util.Either

Fields

Constructors

()

Methods

<L, R> Either<L, R> (App<Either$Mu<R>, L>): unbox

<C, D> Either<C, D> (Function<? super L, ? extends C>, Function<? super R, ? extends D>): mapBoth

<T> T (Function<? super L, ? extends T>, Function<? super R, ? extends T>): map

Either<L, R> (Consumer<? super L>): ifLeft

Either<L, R> (Consumer<? super R>): ifRight

Optional<L> (): left

Optional<R> (): right

<T> Either<T, R> (Function<? super L, ? extends T>): mapLeft

<T> Either<L, T> (Function<? super R, ? extends T>): mapRight

<L, R> Either<L, R> (L): left

<L, R> Either<L, R> (R): right

L (): orThrow

Either<R, L> (): swap

<L2> Either<L2, R> (Function<L, Either<L2, R>>): flatMap