Uses of Class
com.github.nullterminated.trylambda.Either
-
Uses of Either in com.github.nullterminated.trylambda
Subclasses of Either in com.github.nullterminated.trylambdaModifier and TypeClassDescriptionstatic final classEither.Left<A,B> static final classEither.Right<A,B> Methods in com.github.nullterminated.trylambda that return EitherModifier and TypeMethodDescriptionTry.either(CheckedSupplier<R> supplier) This method exists to allow usage ofeitherwith checked suppliers without casting or needing to declare the checked supplier explicitly.Wraps the call togetin a try block.Either.flip()Flip an Either<A,B> to a Either<B,A>.Either.Left.flip()Either.Right.flip()static <A,B> Either <A, B> Either.left(A left) Factory method for constructing lefts.<X,Y> Either <X, Y> abstract <X,Y> Either <X, Y> Map this Either<A,B> to a new Either<X,Y>.<X,Y> Either <X, Y> static <A,B> Either <A, B> Either.right(B right) Factory method for constructing rights.