Contains the CoreFactory.
expect interface CoreFactory : CoreFactoryCommon
The platform specific minimum contract of the 'abstract factory' of atrium-core. |
|
interface CoreFactoryCommon
The minimum contract of the 'abstract factory' of atrium-core for any platform. |
|
sealed class Either<out L, out R>
Represents a disjoint union i.e. a type with two possibilities, either Left or Right. |
|
data class Left<L> : Either<L, Nothing>
The left case of an Either. |
|
object None : Option<Nothing>
Represents an absent value in terms of Option. |
|
sealed class Option<out T>
Represents an optional value with map, flatMap, fold and getOrElse to transform it. |
|
data class Right<R> : Either<Nothing, R>
The right case of an Either. |
|
data class Some<T> : Option<T>
Represents a present value in terms of Option. |
annotation class ExperimentalNewExpectTypes |
val coreFactory: CoreFactory
The access point to an implementation of CoreFactory. |
|
val falseProvider: () -> Boolean
Returns |
|
val trueProvider: () -> Boolean
Returns |
fun <L, R, T> Either<L, R>.flatMap(f: (R) -> Either<L, T>): Either<L, T> |
|
fun <T> Option<T>.getOrElse(default: () -> T): T |