package strikt.arrow
Fields
Name | Description |
---|---|
val b: Assertion.Builder
|
Unwraps the containing value of the Either.Right |
val value: Assertion.Builder
|
Unwraps the containing value of the Either.Right |
val value: Assertion.Builder
|
Unwraps the containing value of the Either.Left |
val value: Assertion.Builder
|
Unwraps the containing value of the Some |
val value: Assertion.Builder<A>
|
Unwraps the containing value of the Validated.Valid |
val value: Assertion.Builder
|
Unwraps the containing value of the Validated.Invalid |
val a: Assertion.Builder
|
Unwraps the containing value of the Either.Left |
val a: Assertion.Builder<A>
|
Unwraps the containing value of the Validated.Valid |
val t: Assertion.Builder
|
Unwraps the containing value of the Some |
val e: Assertion.Builder
|
Unwraps the containing value of the Validated.Invalid |
Methods
isRight
fun <L, R> Assertion.Builder
Receiver
Name | Description |
---|---|
Assertion.Builder
|
ReturnValue
Name | Description |
---|---|
@Suppress("UNCHECKED_CAST")<Either.Right
|
Assertion builder over the same subject that is now known to be a Either.Right. |
isRight
infix fun <L, R> Assertion.Builder
Asserts that the Either is Either.Right and that it contains the exact value
Receiver
Name | Description |
---|---|
Assertion.Builder
|
Parameters
Name | Description |
---|---|
value: R
|
Value to compare to the Either's wrapped value |
ReturnValue
Name | Description |
---|---|
@Suppress("UNCHECKED_CAST")
infix<Either.Right
|
Assertion builder over the same subject that is now known to be a Either.Right. |
isLeft
fun <L, R> Assertion.Builder
Asserts that the Either is Either.Left
Receiver
Name | Description |
---|---|
Assertion.Builder
|
ReturnValue
Name | Description |
---|---|
@Suppress("UNCHECKED_CAST")<Either.Left
|
Assertion builder over the same subject that is now known to be a Either.Left. |
isLeft
infix fun <L, R> Assertion.Builder
Asserts that the Either is Either.Left and that it contains the exact value
Receiver
Name | Description |
---|---|
Assertion.Builder
|
Parameters
Name | Description |
---|---|
value: L
|
Value to compare to the Either's wrapped value |
ReturnValue
Name | Description |
---|---|
@Suppress("UNCHECKED_CAST")
infix<Either.Left
|
Assertion builder over the same subject that is now known to be a Either.Left. |
isNone
fun <T> Assertion.Builder
Receiver
Name | Description |
---|---|
Assertion.Builder
|
ReturnValue
Name | Description |
---|---|
@Suppress("UNCHECKED_CAST")<None>
|
Assertion builder over the same subject that is now known to be a None. |
isSome
fun <T> Assertion.Builder
Receiver
Name | Description |
---|---|
Assertion.Builder
|
ReturnValue
Name | Description |
---|---|
@Suppress("UNCHECKED_CAST")<Some
|
Assertion builder over the same subject that is now known to be a Some. |
isSome
infix fun <T> Assertion.Builder
Receiver
Name | Description |
---|---|
Assertion.Builder
|
Parameters
Name | Description |
---|---|
value: T
|
Value to compare to the Option's wrapped value |
ReturnValue
Name | Description |
---|---|
@Suppress("UNCHECKED_CAST")
infix<Some
|
Assertion builder over the same subject that is now known to be a Some. |
isValid
fun <E, A> Assertion.Builder
Asserts that the Validated is Validated.Valid
Receiver
Name | Description |
---|---|
Assertion.Builder
|
ReturnValue
Name | Description |
---|---|
@Suppress("UNCHECKED_CAST")<Validated.Valid<A>>
|
Assertion builder over the same subject that is now known to be a Validated.Valid. |
isValid
infix fun <E, A> Assertion.Builder
Asserts that the Validated is Validated.Valid and that it contains the exact value
Receiver
Name | Description |
---|---|
Assertion.Builder
|
Parameters
Name | Description |
---|---|
value: A
|
Value to compare to the Validated's wrapped value |
ReturnValue
Name | Description |
---|---|
@Suppress("UNCHECKED_CAST")
infix<Validated.Valid<A>>
|
Assertion builder over the same subject that is now known to be a Validated.Valid. |
isInvalid
fun <E, A> Assertion.Builder
Asserts that the Validated is Validated.Invalid
Receiver
Name | Description |
---|---|
Assertion.Builder
|
ReturnValue
Name | Description |
---|---|
@Suppress("UNCHECKED_CAST")<Validated.Invalid
|
Assertion builder over the same subject that is now known to be a Validated.Invalid. |
isInvalid
infix fun <E, A> Assertion.Builder
Asserts that the Validated is Validated.Invalid and that it contains the exact value
Receiver
Name | Description |
---|---|
Assertion.Builder
|
Parameters
Name | Description |
---|---|
value: E
|
Value to compare to the Validated's wrapped value |
ReturnValue
Name | Description |
---|---|
@Suppress("UNCHECKED_CAST")
infix<Validated.Invalid
|
Assertion builder over the same subject that is now known to be a Validated.Invalid. |
Asserts that the Either is Either.Right