android-components / mozilla.components.support.migration / Result

Result

sealed class Result<T> (source)

Class representing the result of a successful or failed migration action.

Types

Name Summary
Failure class Failure<T> : Result<T>
Failed migration.
Success class Success<T> : Result<T>
Successful migration that produced data of type T.

Extension Functions

Name Summary
loadResourceAsString fun Any.loadResourceAsString(path: String): String
Loads a file from the resources folder and returns its content as a string object.

Inheritors

Name Summary
Failure class Failure<T> : Result<T>
Failed migration.
Success class Success<T> : Result<T>
Successful migration that produced data of type T.