data class Success<out V> : Either<V, Nothing>
Successful result with value value.
Success(value: V)
Successful result with value value. |
val value: V |
val isFailure: Boolean
True if the result is an error, false otherwise. |
|
val isSuccess: Boolean
True if the result was successful, false otherwise. |
fun error(): Nothing?
Returns the error associated. In case of Success, error will be null. |
|
fun value(): V
Returns the value associated. In case of Failure, value will be null. |