Package strikt.arrow

Methods

fun <L, R> Builder.isRight(): Builder

Asserts that the Either is Either.Right

Parameters:
  • No parameters
fun <L, R> Builder.isRight(value: R): Builder

Asserts that the Either is Either.Right and that it contains the exact value

Parameters:
  • value: R

    Value to compare to the Either's wrapped value

fun <L, R> Builder.isLeft(): Builder

Asserts that the Either is Either.Left

Parameters:
  • No parameters
fun <L, R> Builder.isLeft(value: L): Builder

Asserts that the Either is Either.Left and that it contains the exact value

Parameters:
  • value: L

    Value to compare to the Either's wrapped value

fun <T> Builder.isNone(): Builder

Asserts that the Option is None

Parameters:
  • No parameters
fun <T> Builder.isSome(): Builder

Asserts that the Option is Some

Parameters:
  • No parameters
fun <T> Builder.isSome(value: T): Builder

Asserts that the Option is Some and that it contains the exact value

Parameters:
  • value: T

    Value to compare to the Option's wrapped value

fun <T> Builder.isSuccess(): Builder

Asserts that the Try is Success

Parameters:
  • No parameters
fun <T> Builder.isSuccess(value: T): Builder

Asserts that the Try is Success and that it contains the exact value

Parameters:
  • value: T

    Value to compare to the Try's wrapped value

fun <T> Builder.isFailure(): Builder

Asserts that the Try is Failure

Parameters:
  • No parameters
fun <E, A> Builder.isValid(): Builder

Asserts that the Validated is Validated.Valid

Parameters:
  • No parameters
fun <E, A> Builder.isValid(value: A): Builder

Asserts that the Validated is Validated.Valid and that it contains the exact value

Parameters:
  • value: A

    Value to compare to the Validated's wrapped value

fun <E, A> Builder.isInvalid(): Builder

Asserts that the Validated is Validated.Invalid

Parameters:
  • No parameters
fun <E, A> Builder.isInvalid(value: E): Builder

Asserts that the Validated is Validated.Invalid and that it contains the exact value

Parameters:
  • value: E

    Value to compare to the Validated's wrapped value