ExpectedFactory

Expected factory creates value and error expected instances.

Functions

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