Uses of Interface
cloud.opencode.base.core.result.Either
Packages that use Either
Package
Description
Result and response wrapper types for operation outcomes.
-
Uses of Either in cloud.opencode.base.core.result
Classes in cloud.opencode.base.core.result that implement EitherModifier and TypeClassDescriptionstatic final recordEither.Left<L,R> Left - Represents the left case (typically error) Left - 表示左情况(通常为错误)static final recordEither.Right<L,R> Right - Represents the right case (typically success) Right - 表示右情况(通常为成功)Methods in cloud.opencode.base.core.result that return EitherModifier and TypeMethodDescription<L2,R2> Either <L2, R2> Either.bimap(Function<? super L, ? extends L2> leftMapper, Function<? super R, ? extends R2> rightMapper) Transform both sides 转换两侧的值<L2,R2> Either <L2, R2> Either.Left.bimap(Function<? super L, ? extends L2> leftMapper, Function<? super R, ? extends R2> rightMapper) <L2,R2> Either <L2, R2> Either.Right.bimap(Function<? super L, ? extends L2> leftMapper, Function<? super R, ? extends R2> rightMapper) Transform the Right value to another Either 将 Right 值转换为另一个 Eitherstatic <L,R> Either <L, R> Either.left(L value) Create a Left Either 创建 Left EitherTransform the Right value 转换 Right 值Transform the Left value 转换 Left 值Return this or other Either if Left 返回本 Either 或其他 Either(如果是 Left)Execute action on Right value 对 Right 值执行操作Execute action on Left value 对 Left 值执行操作static <L,R> Either <L, R> Either.right(R value) Create a Right Either 创建 Right EitherEither.Left.swap()Either.Right.swap()Either.swap()Swap Left and Right 交换 Left 和 RightMethods in cloud.opencode.base.core.result with parameters of type EitherModifier and TypeMethodDescriptionReturn this or other Either if Left 返回本 Either 或其他 Either(如果是 Left)Method parameters in cloud.opencode.base.core.result with type arguments of type EitherModifier and TypeMethodDescriptionTransform the Right value to another Either 将 Right 值转换为另一个 Either