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

commonMain.io.github.windedge.copybuilder.CopyBuilder.kt Maven / Gradle / Ivy

There is a newer version: 0.1.8
Show newest version
package io.github.windedge.copybuilder

public interface CopyBuilder {

    public fun contains(key: String): Boolean

    public fun get(key: String): Any?

    public fun put(key: String, value: Any?)

    public fun build(): T
}

public interface CopyBuilderHost {
    public fun toCopyBuilder(): CopyBuilder = TODO("Implemented in KopyBuilder Plugin")

    public fun copyBuild(initialize: CopyBuilder.() -> Unit): T {
        val builder = toCopyBuilder()
        builder.initialize()
        return builder.build()
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy