26e923e3ae
Also add standalone mode utils to configure Application/Project environments
26 lines
515 B
Kotlin
Vendored
26 lines
515 B
Kotlin
Vendored
// FILE: main.kt
|
|
|
|
package test.pkg
|
|
|
|
import test.pkg.ColorSpace.Companion.MaxId
|
|
import test.pkg.ColorSpace.Companion.Min<caret>Id
|
|
|
|
annotation class IntRange(val from: Long, val to: Long)
|
|
|
|
private fun isSrgb(
|
|
@IntRange(from = MinId.toLong(), to = MaxId.toLong()) id: Int
|
|
): Boolean {
|
|
return if (id == 0) true else false
|
|
}
|
|
|
|
// FILE: ColorSpace.kt
|
|
|
|
package test.pkg
|
|
|
|
abstract class ColorSpace {
|
|
internal companion object {
|
|
internal const val MinId = -1
|
|
internal const val MaxId = 63
|
|
}
|
|
}
|