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

commonMain.jetbrains.datalore.base.json.FluentPrimitive.kt Maven / Gradle / Ivy

/*
 * Copyright (c) 2020. JetBrains s.r.o.
 * Use of this source code is governed by the MIT license that can be found in the LICENSE file.
 */

package jetbrains.datalore.base.json

class FluentPrimitive : FluentValue {
    private val value: Any?

    constructor(v: Int?) {
        value = v
    }

    constructor(v: String?) {
        value = v
    }

    constructor(v: Boolean?) {
        value = v
    }

    constructor(v: Number?) {
        value = v
    }

    override fun get(): Any? {
        return value
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy