ExpectedFactory

class ExpectedFactory

Expected factory creates value and error expected instances.

Functions

createError
Link copied to clipboard
open fun <E, V> createError(error: E): Expected<E, V>
Create an expected error.
createNone
Link copied to clipboard
open fun <E> createNone(): Expected<E, None>
Create a void value.
createValue
Link copied to clipboard
open fun <E, V> createValue(value: V): Expected<E, V>
Create an expected value.