Interface Either<L,R>

All Known Implementing Classes:
Either.Left, Either.Right

public sealed interface Either<L,R> permits Either.Left<L,R>, Either.Right<L,R>
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static final record 
     
    static final record 
     
  • Method Summary

    Static Methods
    Modifier and Type
    Method
    Description
    static <L,R> @NotNull Either<L,R>
    left(L value)
     
    static <L,R> @NotNull Either<L,R>
    right(R value)
     
  • Method Details

    • left

      @NotNull static <L,R> @NotNull Either<L,R> left(@NotNull L value)
    • right

      @NotNull static <L,R> @NotNull Either<L,R> right(@NotNull R value)