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

commonMain.co.touchlab.skie.plugin.shim.impl.ActualKotlinSourceSetShim.kt Maven / Gradle / Ivy

package co.touchlab.skie.plugin.shim.impl

import co.touchlab.skie.plugin.shim.KotlinSourceSetShim
import org.jetbrains.kotlin.gradle.plugin.KotlinSourceSet

class ActualKotlinSourceSetShim(
    private val kotlinSourceSet: KotlinSourceSet,
) : KotlinSourceSetShim {

    override val name: String
        get() = kotlinSourceSet.name

    override val dependsOn: Set
        get() = kotlinSourceSet.dependsOn.map { ActualKotlinSourceSetShim(it) }.toSet()

    override fun toString(): String =
        kotlinSourceSet.toString()

    override fun equals(other: Any?): Boolean {
        if (this === other) return true
        if (other !is ActualKotlinSourceSetShim) return false

        if (kotlinSourceSet != other.kotlinSourceSet) return false

        return true
    }

    override fun hashCode(): Int =
        kotlinSourceSet.hashCode()
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy