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> Either<L,R>
    left(L value)
     
    static <L, R> Either<L,R>
    right(R value)
     
  • Method Details

    • left

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

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