mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-03-10 15:51:01 +00:00
20 lines
469 B
Kotlin
Vendored
20 lines
469 B
Kotlin
Vendored
// Trait
|
|
|
|
import org.jetbrains.annotations.NotNull
|
|
import org.jetbrains.annotations.Nullable
|
|
|
|
interface Trait {
|
|
fun notNull(a: String): String
|
|
fun nullable(a: String?): String?
|
|
|
|
@NotNull fun notNullWithNN(): String
|
|
@Nullable fun notNullWithN(): String
|
|
|
|
@Nullable fun nullableWithN(): String?
|
|
@NotNull fun nullableWithNN(): String?
|
|
|
|
val nullableVal: String?
|
|
var nullableVar: String?
|
|
val notNullVal: String
|
|
var notNullVar: String
|
|
} |