All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jetbrains.kotlinx.jupyter.util.UpdatableProvider.kt Maven / Gradle / Ivy

Go to download

Implementation of REPL compiler and preprocessor for Jupyter dialect of Kotlin (IDE-compatible)

The newest version!
package org.jetbrains.kotlinx.jupyter.util

interface Provider {
    fun provide(): T?
}

interface UpdatableProvider : Provider {
    fun update(value: T)
}

open class UpdatableProviderImpl : UpdatableProvider {
    private var value: T? = null

    override fun provide(): T? {
        return value
    }

    override fun update(value: T) {
        this.value = value
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy