class Success<out T : Any> : Try<T>
| <init> |
Success(value: T) |
| exception |
val exception: Exception |
| value |
val value: T |
| isFailure |
val isFailure: Boolean |
| isSuccess |
val isSuccess: Boolean |
| component1 |
operator fun component1(): T? |
| component2 |
operator fun component2(): Exception? |
| ifFailure |
fun ifFailure(right: (Exception) -> Unit): Try<T> |
| not |
operator fun not(): Boolean |
| throwIfFailure |
fun throwIfFailure(): Try<T> |
| toEither |
fun toEither(): Either<T, Exception> |
| toOption |
fun toOption(): Option<T> |