org.jetbrains.kotlinx.jupyter.libraries.EmptyResolutionInfoProvider.kt Maven / Gradle / Ivy
package org.jetbrains.kotlinx.jupyter.libraries
import org.jetbrains.kotlinx.jupyter.api.libraries.LibraryResolutionInfo
object EmptyResolutionInfoProvider : ResolutionInfoProvider {
override var fallback: LibraryResolutionInfo
get() = ByNothingLibraryResolutionInfo
set(_) {}
override fun get(string: String): LibraryResolutionInfo {
if (string.isEmpty()) return fallback
return AbstractLibraryResolutionInfo.getInfoByRef(string)
}
}