Uses of Class
io.activej.common.collection.Either
Packages that use Either
-
Uses of Either in io.activej.common.collection
Methods in io.activej.common.collection that return EitherModifier and TypeMethodDescriptionEither.consume(@NotNull BiConsumer<? super L, ? super R> consumer) Consumes both left and right valuesEither.consume(@NotNull Consumer<? super L> leftConsumer, @NotNull Consumer<? super R> rightConsumer) Consumes both left and right valuesEither.flatMapLeft(@NotNull Function<? super L, Either<T, R>> fn) Either.flatMapRight(@NotNull Function<? super R, Either<L, T>> fn) Consumes a left value if thisEitheris left.Consumes a right value if thisEitheris right.static <L,R> Either<L, R> Either.left(L left) Creates a newEitherwith a left valuestatic <L,R> Either<L, R> Either.right(R right) Creates a newEitherwith a right valueEither.swap()Returns a newEitherwhich has its left and right values swappedTry.toEither()Method parameters in io.activej.common.collection with type arguments of type EitherModifier and TypeMethodDescriptionEither.flatMapLeft(@NotNull Function<? super L, Either<T, R>> fn) Either.flatMapRight(@NotNull Function<? super R, Either<L, T>> fn)